From b9c945a196fb192f4257a72fdcc5f81ed2b17ba3 Mon Sep 17 00:00:00 2001 From: Juliana Date: Tue, 12 Jan 2021 18:24:16 +0100 Subject: [PATCH] =?UTF-8?q?Test=20tare=20non=20envoy=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/src/css/style.css | 4 ++-- static/src/js/container.js | 12 +++++------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/static/src/css/style.css b/static/src/css/style.css index 1ccf67b..1c3c716 100644 --- a/static/src/css/style.css +++ b/static/src/css/style.css @@ -381,10 +381,10 @@ h1.product-name { height: 100%; } -.searchbox{ +/*.searchbox{ display: none; } - +*/ .pos .product-list-scroller{ padding-bottom: 200px; } \ No newline at end of file diff --git a/static/src/js/container.js b/static/src/js/container.js index 4f55a59..c72d8a5 100644 --- a/static/src/js/container.js +++ b/static/src/js/container.js @@ -411,7 +411,7 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) if ((scale_answer.error === '30' || scale_answer.error === '31') && scale_answer.weight !== 0) { self.set_weight(0); - self.pos.proxy.reset_tare(); + // self.pos.proxy.reset_tare(); } }); }, {duration: 500, repeat: true}); @@ -598,20 +598,18 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) this.$('.next,.back-presentation').click(function(){ // self.set_weight(0); self.set_price(0); - self.pos.proxy.reset_tare(); self.gui.show_screen('presentation'); }); $("#pos-header-text-confirm").removeClass('oe_hidden'); - var container = this.gui.get_current_screen_param('container'); - if (container) { - this.pos.proxy.reset_tare(); - } + // var container = this.gui.get_current_screen_param('container'); + // if (container) { + // this.pos.proxy.reset_tare(); + // } setTimeout(function(){ self.set_price(0); - self.pos.proxy.reset_tare(); self.gui.show_screen('presentation'); }, 5000);