Hi Experts,
In the New API framework starting from Odoo 8, we have seen some decorator like api.one, api.multi which replace the cr, uid in prior version.
For example, in odoo 7, we need to locate a record using:
self.browse(cr,uid,[id])
In odoo 8, we can just decorate the method using @api.one
So my question is that,
1. Is there any improvement other than grammar while using the new API framework? For instance, performance improvement?
2. If we don't use cr, how can we commit a transaction while using api.one/api.multi?
From the document, it seems that while the operation self.name = value is executed, the field in SQL will be updated and transaction will also be committed.
Thanks a lot in advance.
Regards
Sage