diff options
| author | Simon Lejeune <sle@openerp.com> | 2017-11-28 14:42:00 +0100 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2017-11-28 15:17:59 +0100 |
| commit | 8fb25e185bb2e78ce7864205b4338022b2f44909 (patch) | |
| tree | 45123038a344cf56b1800c856cd0493909d8ff5d /addons | |
| parent | 0ca4b0f373d19fcfb32c7f4db6a8cf16ec1feb58 (diff) | |
[FIX] barcodes: manage several barcode widgets
related to rev 0d19ee989d1d890860adaf360de204eb543136a5
It was broken following the refactoring done in saas16, resulting in
barcodes being handled on all the displayed forms and it was problematic
in the case of a form dialog openned over a "fullscreen" form view.
This was particularily problematic for the scrap dialog in the
stock_barcode module.
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/barcodes/static/src/js/barcode_form_view.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/barcodes/static/src/js/barcode_form_view.js b/addons/barcodes/static/src/js/barcode_form_view.js index 07754344f4e..fa5b27e2a9c 100644 --- a/addons/barcodes/static/src/js/barcode_form_view.js +++ b/addons/barcodes/static/src/js/barcode_form_view.js @@ -284,7 +284,7 @@ FormController.include({ // Handle the case where there are several barcode widgets on the same page. Since the // event is global on the page, all barcode widgets will be triggered. However, we only // want to keep the event on the target widget. - if (self.target && !$.contains(target, self.target.el)) { + if (! $.contains(target, self.el)) { continue; } |
