diff --git a/pos_order_mgmt/static/src/js/widgets.js b/pos_order_mgmt/static/src/js/widgets.js index 99c8285458..b57ec8adf1 100644 --- a/pos_order_mgmt/static/src/js/widgets.js +++ b/pos_order_mgmt/static/src/js/widgets.js @@ -166,7 +166,9 @@ odoo.define('pos_order_mgmt.widgets', function (require) { }, order_action: function (order_data, action) { - this.gui.back(); + if (this.old_order !== null) { + this.gui.back(); + } this['action_' + action](order_data); },