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/380/head
Iván Todorovich 6 years ago
committed by OCA-git-bot
parent
commit
e1aae67a84
  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