
Search In
Hello Readers
In Cakephp framework (based on MVC) you noticed that there are two “vendors” folder.
1. One is it is in “app” folder.
2. Second one is in root folder.
Therefore, the use of two vendor folders in Cakephp is that first (which is plac
If you want to mapped the records in OpenERP(Odoo) follow the below mentioned code and paste it in your (Python).py file: →
# returns a list of summing two fields for each record in the set
records.mapped(lambda r: r.field1 + r.field2)
# returns a l
Low level sql is the cursor for the current database transaction and allows executing SQL directly, either for queries which are difficult to express using the ORM
For example you can take idea from below code-
self.env.cr.execute("some_sql", param1
Hello Readers
In php we count the number of elements of an array by two ways:
1. sizeof()
2. count()
sizeof()
sizeof() function is an alias of count() and it is used to count the elements of an array.
Syntax of the function sizeof():
sizeof(a
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
In below example, I have written Python script to remove 'provision' from selection list when configuring Cash Flow Codes. Paste below python code in .py file :
def fields_get(self, cr, uid, fields=None, context=None):
res = super(account_cashfl
This Method calculates the exponent of the value. Returns enumber, where enumber is the argument, and e is Euler's constant, the base of the natural logarithms. For matrices, the function is evaluated element wise.
Syntax:-
Math.exp(number)
Number
In record data is accessible via the read() method, which takes a list of ids (as returned by search()) and optionally a list of fields to fetch.
ids = models.execute_kw(db, uid, password,
'res.partner', 'search',
[[['is_company', '=', True]
Steps to install the latest version of JMeter:
1 Enter the URL http://jakarta.apache.org/site/downloads/downloads_jmeter.cgi
2 Click on the zip file of Binary version
3 Save the file to the required location
4 Unzip the file
5 Set JAVA
Sometimes we record audio from AudioRecorder and when we play the same audio, it runs with a quite low volume even if volume is set to 1.0 i.e maximum.
Use below lines of code to avoid such issues:
AVAudioSession* audioSession = [AVAudioSession shar
