Community mailing list archives

Re: odoo 8 api

Nhomar Hernandez
- 12/20/2014 03:52:14

2014-12-20 2:31 GMT-06:00 OpenERP Master <>:
Odoo 8.0 uses the active record pattern. Why does it's implementation not require an explicit save()?

If you want a "save()" then the active record is not your option.

You need to use the .write(dict)

Then you create a dict with values:

element = {'field': value, 'field2': value}

2 lines also, and you compute before the write explicitally.


Saludos Cordiales
Nhomar Hernandez