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/416/head
Iván Todorovich 5 years ago
committed by Roberto Fichera
parent
commit
9e1d48fedc
  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.pos.reloaded_order = false;
}
order.destroy();
},
action_copy: function (order_data, order) {

Loading…
Cancel
Save