From c51b02701992d02ef332c7271e3c1a275d8bdfa5 Mon Sep 17 00:00:00 2001 From: lockhaty <45769466+lockhaty@users.noreply.github.com> Date: Wed, 22 Jan 2020 11:52:29 +0000 Subject: [PATCH] [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) --- addons/pos_restaurant/static/src/js/printbill.js | 2 +- doc/cla/individual/lockhaty.md | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 doc/cla/individual/lockhaty.md 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({ diff --git a/doc/cla/individual/lockhaty.md b/doc/cla/individual/lockhaty.md new file mode 100644 index 00000000000..8fe055132ba --- /dev/null +++ b/doc/cla/individual/lockhaty.md @@ -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