summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/jquery.mjs.nestedSortable
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2016-06-15 14:05:35 +0200
committerNicolas Martinelli <nim@odoo.com>2016-06-15 15:11:41 +0200
commit0d19ee989d1d890860adaf360de204eb543136a5 (patch)
tree31b4c4180818e2fdfcfd63351f0b9ebccaabc104 /addons/web/static/lib/jquery.mjs.nestedSortable
parent972efbc0d11ab11cf2397e1a50b164833f562cee (diff)
[FIX] barcodes: manage several barcode widgets
In some cases, several barcode widgets can be found on the same page. This is for example the case of the stock picking: there is a widget on the `stock.picking` model (main view) itself, and a widget on the `stock.pack.operation` model (modal view). In this case, when the focus is not set directly on the field which needs to be filled in, both widgets will trigger a `barcode_scanned` scanned event. This will call the `on_barcode_scanned` Python method which can lead to errors/warning. For example, the `on_barcode_scanned` method on the `stock.picking` model raises a warning in case the barcode scanned does not match any product/package. The fix is to make sure that the event target is located in the correct DOM element. opw-677506
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable')
0 files changed, 0 insertions, 0 deletions