|
@ -27,12 +27,8 @@ odoo.define('pos_tare.screens', function (require) { |
|
|
}, |
|
|
}, |
|
|
// Setup the callback action for the "weight" barcodes.
|
|
|
// Setup the callback action for the "weight" barcodes.
|
|
|
show: function () { |
|
|
show: function () { |
|
|
|
|
|
|
|
|
console.log("okok"); |
|
|
|
|
|
this._super(); |
|
|
this._super(); |
|
|
if (this.pos.config.iface_tare_method !== 'manual') { |
|
|
if (this.pos.config.iface_tare_method !== 'manual') { |
|
|
|
|
|
|
|
|
console.log("okokokok"); |
|
|
|
|
|
this.pos.barcode_reader.set_action_callback( |
|
|
this.pos.barcode_reader.set_action_callback( |
|
|
'tare', |
|
|
'tare', |
|
|
_.bind(this.barcode_tare_action, this)); |
|
|
_.bind(this.barcode_tare_action, this)); |
|
|