
Search In
The __init__.py file is the Python module descriptor, because an OpenERP
module is also a regular Python module.
1- Import all files & directories containing python code
2-import idea, wizard, report
The __openerp__.py is the OpenERP module man
The procedure to translate text in Python and JavaScript code is very similar. You could have noticed these lines at the beginning of the petstore.js file.
var _t = instance.web_t,
_lt = instance.web_lt;
These lines are simply used to import th
If you want to writing test case, you have to add javascript code in your Odoo manifest files.For example see below code.
{
'name': "Demonstration of web/javascript tests",
'category': 'Hidden',
'depends': ['web'],
'test': ['static/t
Appium provides keycodes for the alphabets only in the lowercase. If we have to send any alphabet in uppercase then we have to send the keycode of that alphabet with the shift keycode. Practically also we first press the shift key and then press the
If you want to access old api to new api you have to move on migration method and By default, using new API you have to work on a new RecordSet class instance by yourself. But old context and model are still available in old api. means you have to mo
To display all errors in php we need to add following lines of code in php file.
error_eporting(E_ALL);
ini_set('display_errors', 1);
We can Set display_errors = On in your php.ini file.
or we can try the following code in php file.
ini_set('d
In python dis module converts byte codes to a format and You can run the disassembler from the command line and It compiles the given script and prints the disassembled byte codes to the stdout . The dis function takes a class, method, function or co
To get only year from a date you can use the below code. You can pass any date that you wan to change, I'm getting year from the date in the below example:
/**
* Get year from Date
*
* @param createDate
* @return
*/
Im trying to implement custom vibration pattern programatically inside my app.kindly suggest any sample apps/ source codes which we can add the custom vibration pattern inside code.I am able to bring the default vibration inside by adding the A
If you want to install the downloaded .apk from your device through java code than you just need the path and the name of that .apk, if you have these two thing (path and the name of that .apk) than you just need to use the code given below.
// Ment
