summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-05-03 15:18:08 +0200
committerGéry Debongnie <ged@odoo.com>2017-05-04 09:32:24 +0200
commit91d1fd870123e9a56d64e3482e2ead1536230ab7 (patch)
tree563147ae00b5aaba3dc080bde43ac7ad8559ad2a /addons/web/static/src/js/views/basic
parent7b6c474c203cf2a9c4f8ed7512a944c87cfdea85 (diff)
[FIX] web: prevent double onchange in some cases
When we unselect a line in a one2many list, we ask for all fields to commit their changes (because many fields are debounced, so we may not know their current last value). This is good, except that it could trigger an extra field change event, which may in turn trigger a second onchange. We solve this issue by improving the _setValue method and delegating the comparison to a new _isSameValue method. It is particularly relevant for field types such as integer, which are not stored as a string.
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions