
Search In
If you want to Computed fields in OpenERP(Odoo) follow the below mentioned code and paste it in your (Python).py file: →
upper = fields.Char(compute='_compute_upper',
inverse='_inverse_upper',
search='_search_
In profile module we have to create a profile, we only have to create a new directory in server/addons and we should call this folder.
profile_module name, in which we put an empty __init__.py file (as every directory Python imports must contain .py
If you want to use transaction_fields in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file: -
def name_get(self, cr, user, ids, context={}):
if not len(ids):
return []
res = []
for r in self.read(cr, user, ids, [’name
If you want to use name_get method in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file:
def name_get(self, cr, user, ids, context={}):
if not len(ids):
return []
res = []
for r in self.read(cr, user, ids, [’name’,’zip
The action manager can be invoked explicitly from javascript code by creating a dictionary describing an action of the right type, and calling an action manager instance with it.
In below example I have written javascript to Include only parent level
A client action is an action type defined almost entirely in the client, in javascript for Odoo web. The server simply sends an action tag and optionally adds a few parameters, but beyond that everything is handled by custom client code.For example c
On the server side, we can simply defined an ir.actions.client. In below code we will use .xml file.
<record id="action_home_page" model="ir.actions.client">
<field name="tag">petstore.homepage</field>
</record>
For menu
Actions are used to trigger one or more actions to be performed on the server side, when a specific stage of a workflow is reached. To write this code in .xml file in openerp(odoo), use the Code given below.
<record id="company_normal_action_tree
There is a function array_count_values() in PHP which counts the frequency of occurrences of all values of an array. The function returns an associative array with original values as keys and the number of occurrences as values.
Syntax: array_count_
In java can we create a inner class inside a method??
Answer to this query is yes .
Example code :
class Outer
{
String outerVar="outer Variable";
public void checkInner()
{
final String localVar="Loc
