diff options
| author | Gert Pellin <gpe@odoo.com> | 2019-04-03 13:35:46 +0000 |
|---|---|---|
| committer | Gert Pellin <gpe@odoo.com> | 2019-04-04 08:58:41 +0000 |
| commit | 6188a61de3db35ab4944343acd3ccab61c9eeebe (patch) | |
| tree | 70da23a21f4b88368e88fa18b8a80aa9b023548d /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | 40a650a089af5311e8bfdd0384859a0bc67a6270 (diff) | |
[FIX] hw_scale: Adam scale wait time
When opening the weight screen in PoS it can take up to 10 seconds
until the weighting starts. This can be resolved by using a
Threading.Event instead to reset the 10 second sleep time.
Using exit_flag.wait(timeout=DELAY) will be more responsive, because
you'll break out of the while loop instantly when exit_flag is set. With
time.sleep(timeout=DELAY), even after the event is set, you're going to wait around in
the time.sleep call until you've slept for DELAY seconds.
closes odoo/odoo#32389
Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
