|
|
@ -313,8 +313,10 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) |
|
|
|
self.set_weight(scale_answer.weight); |
|
|
|
if ((scale_answer.error === '30' || scale_answer.error === '31') && scale_answer.weight !== 0) { |
|
|
|
self.gui.show_screen(self.next_screen); |
|
|
|
if (this.pos.config.is_comptoir) { |
|
|
|
self.create_container(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}, {duration: 500, repeat: true}); |
|
|
|
this._super(); |
|
|
@ -367,6 +369,10 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) |
|
|
|
|
|
|
|
selected_order.add_container(container); |
|
|
|
|
|
|
|
if (this.pos.config.is_comptoir) { |
|
|
|
self.gui.show_screen(self.next_screen); |
|
|
|
} |
|
|
|
else{ |
|
|
|
self.gui.show_popup('confirm-pesee',{ |
|
|
|
'title': _t('Merci'), |
|
|
|
'body': _t('Contenant ajouté, vous pouvez vous servir'), |
|
|
@ -374,8 +380,10 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) |
|
|
|
self.gui.show_screen(self.next_screen); |
|
|
|
}, |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
close: function(){ |
|
|
|
this._super(); |
|
|
|
if (this.pos.config.iface_vkeyboard && this.chrome.widget.keyboard) { |
|
|
|