Browse Source

Test tare non envoyée

12.0
Juliana 3 years ago
parent
commit
b9c945a196
  1. 4
      static/src/css/style.css
  2. 12
      static/src/js/container.js

4
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;
}

12
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);

Loading…
Cancel
Save