From 00c66d1e69b2a8684e087a67978390006978bea1 Mon Sep 17 00:00:00 2001 From: Ajmal Cybro Date: Wed, 3 Nov 2021 14:49:02 +0530 Subject: [PATCH] [FIX] Bug Fix --- pos_discount_manager/__manifest__.py | 2 +- pos_discount_manager/static/src/js/ValidateManager.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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