summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/data.js
diff options
context:
space:
mode:
authorJoren Van Onder <jov@odoo.com>2016-09-27 16:00:27 +0200
committerJoren Van Onder <jov@odoo.com>2016-10-18 16:56:46 -0700
commit8e720a9319317217fa39c3be982b41072fcd479a (patch)
tree3edbf57563db1333d5918379673e83ca44b8c36f /addons/web/static/src/js/framework/data.js
parentfa50349d7e02b07094b72bf52ad96af67387767f (diff)
[FIX] point_of_sale: delete validated orders immediately from db
If you validate an order it will be sent to the backend. If you then close the POS frontend somehow before clicking 'Next order' this order will be reloaded from localStorage when reopening it. This is problematic because it allows the user to then modify this order and validate it again. Everything will appear fine but in the backend this new, modified order will be ignored as it has the same pos_reference as the one that was sent initially. The deeper underlying issue is that there exists a brief timeframe where the same order can exist twice in the db: both as 'order' and 'unpaid_order'. To ensure this does not happen this fix removes the order from the unpaid orders after it is saved as a validated order. Fixes #13538
Diffstat (limited to 'addons/web/static/src/js/framework/data.js')
0 files changed, 0 insertions, 0 deletions