Community mailing list archives

community@mail.odoo.com

Re: odoo 8 api

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

2014-12-20 2:31 GMT-06:00 OpenERP Master <openerpmaster@gmail.com>:
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}
self.write(element)

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

Regards.

--
--------------------
Saludos Cordiales
 
--
Nhomar Hernandez
http://about.me/nhomar