
Search In
To get the date of the past day you can use the below code. You can pass any number of day for which you want to get date instead of 7, I'm getting date of past 7 days in the below example:
/**
* Get date before past 7 days
*
* @return string
To configure PhoneGap project in Eclipse follow the below steps-
Step -1 Go to Terminal
Step -2 Install frist - $ sudo npm install -g cordova.
Step -3 $ cd Desktop/
Step - 4 $ cordova create Raj007 com .example.Raj007 raj
Step -5 $ cd Raj0
Hello Readers
If you want to calculate difference between two dates using PHP , use below code.
comment: Suppose we have the two dates below date1 and date2
$date1 = "2014-06-11";
$date2 = "2015-07-16";
comment:then we get diffrence with absolute
To Inherit workflow in openerp
use this below code in worlflow.xml file in openerp
<record id="module_name.act_done" model="workflow.activity">
<field name="wkf_id" ref="module_name.wkf"/>
<field name="name">done</field&
We get a click event when we click a Button in UI , but how to get a click event while clicking on
a GameObject from our scene .
It is very simple .
To get a click event from a object , add a collider to that object and th
With the help of jQuery we can delete link for any record. On below code we have add a click event to triggers the ajax request. when the ajax request returns get success response.
$(document).ready(function() {
$('a.delete').click(function(
Hello Readers!
You people can use below code if you are using Gmail SMTP connection.
$from = '<fromaddres@gmail.com>';
$to = '<toaddress@yahoo.com>';
$subject = 'Hi!';
$body = "Hi, How are you?";
$headers = array(
'From' => $fro
What is use of join() function.?
The join() function returns a string from the elements of an array.
The join() function alias of implode() function.
Syntax of strtolower() function:
join(" ",array)
You can see below example of join() function in
TO retrieve all children projects of project ids in project module and return a dictionary mapping each project to appiar its parent.id in parent project in project module (or None)in openerp. use this code given below in .py file in openerp.
def
In Odoo-9 by default, tests are run once right after the corresponding module has been installed. Test cases can also be configured to run after all modules have been installed, and not run right after the module installation.For example code is belo
