From 9568a02e341152a48b0a82665e2a8f4a953b4bda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Todorovich?= Date: Thu, 20 Jun 2019 09:36:12 +0000 Subject: [PATCH] IMP destroy order after printing. Fixes a bug where, after printing an order, if the user refreshes the browser the order will load again. And this will happen for every previously printed order in the session. --- pos_order_mgmt/static/src/js/widgets.js | 1 + 1 file changed, 1 insertion(+) diff --git a/pos_order_mgmt/static/src/js/widgets.js b/pos_order_mgmt/static/src/js/widgets.js index 8d7630fa..740e1ba3 100644 --- a/pos_order_mgmt/static/src/js/widgets.js +++ b/pos_order_mgmt/static/src/js/widgets.js @@ -194,6 +194,7 @@ odoo.define('pos_order_mgmt.widgets', function (require) { this.gui.show_screen('receipt'); this.pos.reloaded_order = false; } + order.destroy(); }, action_copy: function (order_data, order) {