[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>
This commit is contained in:
lockhaty
2020-01-24 14:38:05 +00:00
committed by Martin Trigaux
parent a0cf136818
commit c51b027019
2 changed files with 14 additions and 1 deletions
@@ -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({
+13
View File
@@ -0,0 +1,13 @@
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
South Africa, 2020-01-22
I hereby agree to the terms of the Odoo Individual Contributor License
Agreement v1.0.
I declare that I am authorized and able to make this agreement and sign this
declaration.
Signed,
Yusuff Lockhat 45769466+lockhaty@users.noreply.github.com https://github.com/lockhaty