From b8be4f11a4385858c4766441f2936edefd86c91b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Kawala?= Date: Wed, 29 Jan 2020 09:34:30 +0100 Subject: [PATCH] Fix missing _t. --- pos_barcode_tare/static/src/js/pos_barcode_tare.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pos_barcode_tare/static/src/js/pos_barcode_tare.js b/pos_barcode_tare/static/src/js/pos_barcode_tare.js index 9d238944..dcbb2d3a 100644 --- a/pos_barcode_tare/static/src/js/pos_barcode_tare.js +++ b/pos_barcode_tare/static/src/js/pos_barcode_tare.js @@ -1,4 +1,5 @@ odoo.define('pos_barcode_tare.screens', function (require) { + "use strict"; var chrome = require('point_of_sale.chrome'); var core = require('web.core'); @@ -7,6 +8,7 @@ odoo.define('pos_barcode_tare.screens', function (require) { var models = require('point_of_sale.models'); var screens = require('point_of_sale.screens'); var QWeb = core.qweb; + var _t = core._t; // This configures read action for tare barcode. A tare barcode contains a // fake product ID and the weight to be subtracted from the product in the @@ -53,7 +55,7 @@ odoo.define('pos_barcode_tare.screens', function (require) { button_click: function () { var self = this; - this.gui.show_screen('tare'); + self.gui.show_screen('tare'); }, });