-
How to defines write()method in OpenERP/Odoo ?
about 9 years ago
-
about 9 years ago
I would like to correct a bit. 'write' method is used to modify a record with given values in the dictionary. Where the key is the name of the field and the value is the new data to be changed on that field (according to the type of the field).
According to new API, we use self.write({'test': 'demo'})
self = current object containing current record, 'test' = name of the field, 'demo' = new value to be replaced
I hope this helps. Thanks.
-
1 Comment(s)