Browse Source

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.

pull/397/head
Iván Todorovich 5 years ago
committed by AmmarOfficewala
parent
commit
9568a02e34
  1. 1
      pos_order_mgmt/static/src/js/widgets.js

1
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.gui.show_screen('receipt');
this.pos.reloaded_order = false; this.pos.reloaded_order = false;
} }
order.destroy();
}, },
action_copy: function (order_data, order) { action_copy: function (order_data, order) {

Loading…
Cancel
Save