summaryrefslogtreecommitdiff
path: root/addons/pos_restaurant/static/src/js
diff options
context:
space:
mode:
authorlockhaty <45769466+lockhaty@users.noreply.github.com>2020-01-22 11:52:29 +0000
committerMartin Trigaux <mat@odoo.com>2020-01-24 14:38:05 +0000
commitc51b02701992d02ef332c7271e3c1a275d8bdfa5 (patch)
tree2cc9d5bded5f9a7bd26637be77175e3429b38d16 /addons/pos_restaurant/static/src/js
parenta0cf136818f4b4728f5509a43229c54c767f79b4 (diff)
[FIX] pos_restaurant: add missing import
When there are no items in the cart, pressing the print bill button may result in an error due to the translation (_t) module not being imported closes odoo/odoo#43937 X-original-commit: f4ef43e98613c2e916402eb35375a3d39481832f Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/pos_restaurant/static/src/js')
-rw-r--r--addons/pos_restaurant/static/src/js/printbill.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/pos_restaurant/static/src/js/printbill.js b/addons/pos_restaurant/static/src/js/printbill.js
index 2709592dfe0..02e7c3bd36c 100644
--- a/addons/pos_restaurant/static/src/js/printbill.js
+++ b/addons/pos_restaurant/static/src/js/printbill.js
@@ -4,7 +4,7 @@ odoo.define('pos_restaurant.printbill', function (require) {
var core = require('web.core');
var screens = require('point_of_sale.screens');
var gui = require('point_of_sale.gui');
-
+var _t = core._t;
var QWeb = core.qweb;
var BillScreenWidget = screens.ReceiptScreenWidget.extend({