[FIX] api: avoid to return all fields *2many in onchanges
authorDenis Ledoux <dle@odoo.com>
Fri, 14 Nov 2014 13:24:11 +0000 (14:24 +0100)
committerDenis Ledoux <dle@odoo.com>
Fri, 14 Nov 2014 13:24:11 +0000 (14:24 +0100)
commit999ed04c40ec7a8465dc959b75cc6617cb4e6bf3
treef1ed2bf01a531ba02cc489ed05bff942f4857fb9
parentf469e8e09fd2b499ef8b157ba6a57465d56d978c
[FIX] api: avoid to return all fields *2many in onchanges

When an onchange returns a change in a 2many field line (a '1' tuple, update), avoid to return all fields of the *2many field but only the altered field.

Otherwise, the web client regard all the fields of the 2many as dirty, and try to write on all fields (even if the value is the same, thus)

opw-615062
openerp/api.py
openerp/fields.py
openerp/models.py