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