summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2017-06-02 14:28:07 +0200
committerAaron Bohy <aab@odoo.com>2017-06-07 08:08:49 +0200
commite9de309511d64897444645f8a9ea4bf701709bb8 (patch)
tree27d2243b80aedda362deaab12c68d236ee869542 /addons/web/static/src/js/fields
parent98142f731d38aecf87d7e7900e6eeff8c047a9eb (diff)
[FIX] web: editable list: setRowMode returns a deferred
This function should return a deferred, as indicated in the docstring. However, in some cases, it doesn't. It then crashed as the FieldX2Many tries to call done() on undefined. This happens for instance on the customer invoice form view: create a new record, select a partner, add a line, select a product, directly click on the invoice date field (this will trigger an onchange which will totally override the value of the one2many). The FielX2Many calls setRowMode to switch the edited row back to readonly, but this row doesn't exist anymore as the one2many value has been overriden by the onchange, so setRowMode wrongly returns nothing, and it crashes.
Diffstat (limited to 'addons/web/static/src/js/fields')
0 files changed, 0 insertions, 0 deletions