|
|
@ -328,6 +328,8 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) |
|
|
|
return this.pos.get_container_product(); |
|
|
|
}, |
|
|
|
create_container: function(){ |
|
|
|
|
|
|
|
if (this.weight != 0) { |
|
|
|
var self = this; |
|
|
|
var fields = {}; |
|
|
|
|
|
|
@ -339,6 +341,7 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) |
|
|
|
this.pos.push_container(fields).then( |
|
|
|
this.pushed_container(fields["barcode"],fields) |
|
|
|
); |
|
|
|
} |
|
|
|
}, |
|
|
|
pushed_container: function(barcode,container){ |
|
|
|
var self = this; |
|
|
@ -381,12 +384,12 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) |
|
|
|
// this.set_price(0);
|
|
|
|
scale_screen.renderElement(); |
|
|
|
|
|
|
|
queue.schedule(function () { |
|
|
|
return self.pos.proxy.reset_weight().then(function () { |
|
|
|
self.set_weight(0); |
|
|
|
// self.set_price(0);
|
|
|
|
}); |
|
|
|
}, {duration: 500}); |
|
|
|
// queue.schedule(function () {
|
|
|
|
// return self.pos.proxy.reset_weight().then(function () {
|
|
|
|
// self.set_weight(0);
|
|
|
|
// // self.set_price(0);
|
|
|
|
// });
|
|
|
|
// }, {duration: 500});
|
|
|
|
|
|
|
|
queue.schedule(function(){ |
|
|
|
return self.pos.proxy.scale_read().then(function(scale_answer){ |
|
|
|