summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2016-11-15 22:22:31 +0100
committerSimon Lejeune <sle@openerp.com>2017-01-09 16:36:00 +0100
commit17adc2e09ec67ea4a2325b1cc5bfaf93e7d968c1 (patch)
tree0e99a946c499604ca2cee8489e563aaaf8000ff2 /addons/web/static/src
parentf27e69eced45ccd16d10418269ac61c28d24027b (diff)
[FIX] barcodes: form view barcode handler: concurrency
Suppose the following usecase: you scan the first product of the picking. A server onchange is then triggered. You scan the same product a second time, before the first onchange has returned. You expect that the first onchange is completely executed before running the second one. This was not the case. Moreover, some onchanges were not be able to work with the invalid state of the formview at some times, and crashed. The previous implementation was wrong because id didn't run the main barcode processing mechanism inside a Mutex. It was also wrong because it didn't correctly wait for the onchange to execute (a previous barcode onchanges or some classic ones) before setting the barcode field.
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions