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

Search In

Setting a Date

Sets the day of the month for a specified date object using local time. dateObjectName.setDate(dayValue) dateObjectName is the name of a Date object. dayValue is an integer from one to thirty-one, representing the day of the month. For example,

How to use api.onchange in OpenERP(Odoo)?

Api.onchange will trigger the call to the decorated function if any of the fields specified in the decorator is changed in the form: In below code you can use in your .py file. @api.onchange('fieldx') def do_stuff(self): if self.fieldx == x: self.fi

How to use api.depends in OpenERP(Odoo)?

Api.depends will trigger the call to the decorated function if any of the fields specified in the decorator is altered by ORM or changed in the form: In below code you can use in your .py file. @api.depends('name', 'an_other_field') def afun(self):

How to change the main module file in OpenERP(Odoo)?

We will have to remove .py file, rename the class and its attributes to something like below code. from osv import osv, fields class travel_hostel(osv.osv): _name = ’travel.hostel’ _inherit = ’res.partner’ _columns = { ’rooms_id’: fields.one2many(’

How to perform TinyMCE Form Submission

Whenever textarea is replaced by TinyMCE, at that time it will hidden and TinyMCE editor which is an iframe is display in place of this. When we make standard form submission then it is handled by TinyMce. But in case of Ajax form submission,we have

How to get count records in OpenERP/Odoo ?

In count records retrieve a list of records and count them, search_count() can be used to retrieve only the number of records matching the query. It takes the same domain filter as search() and no other parameter.For example code is like below. mode

How to update records in OpenERP/Odoo ?

In update records can be updated using write(), it takes a list of records to update and a mapping of updated fields to values similar to create() .for example code is like below. models.execute_kw(db, uid, password, 'res.partner', 'write', [[id], {

How to Create Immutable Class in Java

How to create Immutable class in java Immutable class is a class which once created, it’s contents can not be changed. Immutable objects are the objects whose state can not be changed once constructed. e.g. String class Since the state of the immuta

Changing the Behavior of a Dialog Box with Effects

The options used when creating the dialog box can be modified by the dialog ("option", param, value) method. The param parameter is the name of the option, while the value corresponds to its new value. let’s change the effect for the opening and clos

ACID property of database

Full form of ACID is Atomicity Consistency Isolation Durability . ACID is the concept that database professional follow while evaluating relational database and application architecture. For a reliable database all of the following attributes should

1 44 342
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: