diff options
| author | Joren Van Onder <jov@odoo.com> | 2016-02-04 11:03:08 +0100 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2016-02-04 11:50:21 +0100 |
| commit | efe263280dd8f6665cf97799dd40b4ea6d64e6b1 (patch) | |
| tree | 0135292c6e4fbdc42c802ca3165bb9f2757a2053 /addons/pos_restaurant/static/src/js/splitbill.js | |
| parent | cf8b05a16d5e9ee466d8ff6e51fc53b9a7982b5e (diff) | |
[FIX] point_of_sale, pos_restaurant: temporary orders
pos_restaurant creates temporary orders when splitting the bill. This
ensures those are never saved to persistent storage. As soon as the user
clicks on the pay button, the order is not considered temporary anymore
and will be saved.
Closes #10767
Fixes #10350
opw-666141
Diffstat (limited to 'addons/pos_restaurant/static/src/js/splitbill.js')
| -rw-r--r-- | addons/pos_restaurant/static/src/js/splitbill.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/pos_restaurant/static/src/js/splitbill.js b/addons/pos_restaurant/static/src/js/splitbill.js index 745c8282c20..cce3dcbe490 100644 --- a/addons/pos_restaurant/static/src/js/splitbill.js +++ b/addons/pos_restaurant/static/src/js/splitbill.js @@ -107,6 +107,7 @@ var SplitbillScreenWidget = screens.ScreenWidget.extend({ return; } + delete neworder.temporary; if(full){ this.gui.show_screen('payment'); |
