CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
We can see the "vals" in Odoo in methods write, create. It is nothing but a dictionary that contains the values of the corresponding record. In create method, it contain all the values of the record we are going to create. The write method is called when we make changes in records. So the "vals" dictionary may contain only those values that we made changes.
Note: We can use any variable instead of "vals" as arguments of create and write methods when overriding those methods. It is the only condition it must be in its position and a dictionary.
Thanks & Regards
About This Community
Odoo Training Center
|Asked: 5/11/16, 3:57 PM|
|Seen: 688 times|
|Last updated: 5/12/16, 12:22 PM|