summaryrefslogtreecommitdiff
path: root/addons/barcodes/static/src/js/barcode_parser.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2015-07-02 14:03:28 +0200
committerAaron Bohy <aab@odoo.com>2015-07-02 14:04:42 +0200
commit3bb35d68b6b8ef301225aa927b9c90e182149f58 (patch)
treeb3b759ce15def1aaf018a29a8dad154fee3b557b /addons/barcodes/static/src/js/barcode_parser.js
parenta314fa0de22067cb1cbcdb01db0badef4eb6be02 (diff)
[FIX] web: x2many fields: set_value(): missing return
The set_value() function of x2many fields is asynchronous. When a record is loaded, the invisibility changers (IC) are evaluated once set_value() has been performed on every fields. As set_value() didn't return its deferred, the IC where evaluated with wrong values. It produced in particular the following bug: Go to Customers > Agrolait (the Contacts tab is displayed), switch to next record, which is the first contact of Agrolait. The Contacts tab is still displayed, whereas it should not (the invisible condition being is_company == false and child_ids == [], i.e. there is no contact). Also call this._super() in set_value() of AbstractManyField instead of duplicating the function of its parent.
Diffstat (limited to 'addons/barcodes/static/src/js/barcode_parser.js')
0 files changed, 0 insertions, 0 deletions