diff --git a/pos_discount_manager/__manifest__.py b/pos_discount_manager/__manifest__.py index 375e23c0c..5c323231d 100644 --- a/pos_discount_manager/__manifest__.py +++ b/pos_discount_manager/__manifest__.py @@ -21,7 +21,7 @@ ############################################################################# { 'name': "POS Discount Manager Approval", - 'version': '14.0.1.0.1', + 'version': '14.0.1.0.2', 'summary': """Discount limit for each employee in every point of sale""", 'description': """"This module helps you to set a discount limit for each employee in every point of sale. It facilitate the manager approval when discount over the limit of employee""", diff --git a/pos_discount_manager/static/src/js/ValidateManager.js b/pos_discount_manager/static/src/js/ValidateManager.js index bda5e7756..339cf3806 100644 --- a/pos_discount_manager/static/src/js/ValidateManager.js +++ b/pos_discount_manager/static/src/js/ValidateManager.js @@ -61,7 +61,6 @@ odoo.define('pos_discount_manager.ValidateManager', function(require) { } this.currentOrder.initialize_validation_date(); - this.currentOrder.finalized = true; let syncedOrderBackendIds = []; @@ -145,6 +144,8 @@ odoo.define('pos_discount_manager.ValidateManager', function(require) { } + this.currentOrder.finalized = true; + this.showScreen(this.nextScreen); // If we succeeded in syncing the current order, and