summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/relational_fields.js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-12-18 14:29:02 +0100
committerGéry Debongnie <ged@odoo.com>2017-12-18 17:29:14 +0100
commit0c98951f1ceea0104d06cd0e543cf32fc1c34f27 (patch)
tree4d6a7eb9feefe6506256da2b4fbbe2fcd7e67c23 /addons/web/static/src/js/fields/relational_fields.js
parentfa9f58d6ced2e18403506b1b59a8de2734d71671 (diff)
[FIX] barcodes: use patch to prevent interactions between tests
There is a subtle issue happening in tests when we override a widget property for the duration of the test and try to restore the initial state at the end by rewriting on the property. It actually changes the widget, by having a function bound to the sub widget prototype instead of its ancestor. This in turns can cause weird interactions with the class system. We introduced a proper way to temporarily patch a class/widget by adding a method in testUtils to do exactly that. This commit simply uses that method to prevent unwanted interactions in barcode tests
Diffstat (limited to 'addons/web/static/src/js/fields/relational_fields.js')
0 files changed, 0 insertions, 0 deletions