Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

What is the difference between two vendors folder available in cakephp?

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

How to mapped the records in openERP/Odoo ?

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

How to use low-level SQL in openERP/Odoo ?

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

How can we know the count/number of elements of an array?

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

How to use __init__.py in OpenERP/Odoo ?

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

How to remove 'provision' from selection list when configuring Cash Flow in Odoo

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

Math exp Method

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

How to read records in OpenERP/Odoo ?

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]

How to install JMeter

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

low sound when recorded audio is played

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

1 241 949
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: