From c43826d0d8daa5a316321b640eb6811878e01d17 Mon Sep 17 00:00:00 2001 From: Juliana Date: Thu, 16 Jul 2020 12:26:08 +0200 Subject: [PATCH] =?UTF-8?q?AJout=20creation=20transaction=20apres=20articl?= =?UTF-8?q?e=20enlev=C3=A9=20de=20la=20balance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/src/js/container.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/static/src/js/container.js b/static/src/js/container.js index 89fcfc2..28d78bd 100644 --- a/static/src/js/container.js +++ b/static/src/js/container.js @@ -157,7 +157,7 @@ odoo.define('vracoop_pos_free_balance_V2.container_balance', function (require) 'widget': ConfirmationScreen, }); - // Add the FloorScreen to the GUI, and set it as the default screen + // Add the Presentation to the GUI, and set it as the default screen chrome.Chrome.include({ build_widgets: function(){ this._super(); @@ -177,7 +177,7 @@ odoo.define('vracoop_pos_free_balance_V2.container_balance', function (require) }); // We need to modify the OrderSelector to hide itself when we're on - // the floor plan + // the floor plan ? chrome.OrderSelectorWidget.include({ hide: function(){ @@ -209,7 +209,6 @@ odoo.define('vracoop_pos_free_balance_V2.container_balance', function (require) $("#pos-topheader-scale").addClass('oe_hidden'); var screen = this.gui.screen_instances['products']; - // screen.$el.removeClass('oe_hidden'); }, show: function(){ @@ -351,8 +350,6 @@ odoo.define('vracoop_pos_free_balance_V2.container_balance', function (require) show: function(){ - // $("#validation-bloc").removeClass('oe_hidden'); - // this._super(); var self = this; var queue = this.pos.proxy_queue; @@ -394,7 +391,7 @@ odoo.define('vracoop_pos_free_balance_V2.container_balance', function (require) self.set_price(scale_answer.price); if ((scale_answer.error === '30' || scale_answer.error === '31') && scale_answer.weight !== 0) { self.gui.show_screen(self.next_screen); - // add product *after* switching screen to scroll properly + self.create_transaction(); self.order_product(); } });