summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/widgets/debug_manager.js
diff options
context:
space:
mode:
authorMartin Geubelle <mge@odoo.com>2017-09-07 17:19:38 +0200
committerMartin Geubelle <mge@odoo.com>2017-09-08 12:27:43 +0200
commit14cb9af0d672e544484d6dc7b3432722217f4e10 (patch)
tree5a7e2cd2525d7657d52de3b4dc59d7f44780e961 /addons/web/static/src/js/widgets/debug_manager.js
parentb2c916de836d55e2c6deb0c0f344de51de86ba63 (diff)
[FIX] web: only send changed fields on one2many after onchange
The server response to an `onchange` on a one2many is a list of commands. In case of one2many update (command 1), the server returns all fields (and not only the modified ones). When saving the record, this is the client responsability to specify which fields really changed. Before this commit, all fields were sent at `write` and not only the changed ones. This was causing issues when the user couldn't write on the field ; an error was triggered even though the user didn't change anything. To fix this, we only tag as changed (in the datapoint `_changes` attribute) the fields that have a different value after the onchange.
Diffstat (limited to 'addons/web/static/src/js/widgets/debug_manager.js')
0 files changed, 0 insertions, 0 deletions