|
@ -81,6 +81,7 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) |
|
|
barcode_container_action: function(code){ |
|
|
barcode_container_action: function(code){ |
|
|
var self = this; |
|
|
var self = this; |
|
|
|
|
|
|
|
|
|
|
|
if (this.pos.config.is_balance_free){ |
|
|
if (self.pos.scan_container(code)) { |
|
|
if (self.pos.scan_container(code)) { |
|
|
var order = this.pos.get_order(); |
|
|
var order = this.pos.get_order(); |
|
|
var selected_orderline = order.get_selected_orderline(); |
|
|
var selected_orderline = order.get_selected_orderline(); |
|
@ -105,6 +106,8 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) |
|
|
} else { |
|
|
} else { |
|
|
self.gui.show_screen('balancecontainerscale', {barcode: code.base_code}); |
|
|
self.gui.show_screen('balancecontainerscale', {barcode: code.base_code}); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
this._super(code); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
delete_selected_transaction: function(transaction, barcode){ |
|
|
delete_selected_transaction: function(transaction, barcode){ |
|
|