What is the difference between write and update method in odoo11 because when i use write it work first time only then it not work.
Asked
Active
Viewed 2,673 times
5
-
read the docs to know – Navi Mar 26 '18 at 11:41
-
Please go through this link https://www.odoo.com/documentation/11.0/index.html – Bhoomi Vaishnani Mar 26 '18 at 13:49
1 Answers
12
For simple fields
should give you a single update statement in the database, and
update({'attr1': 'val1', 'attr2': 'val2'})
iterates over the fields and sets each one separately giving you multiple update statements in the database.

bigbear3001
- 522
- 8
- 19