From 8bbc99d576ab1676af5f8fec1a8866fbe25f16fe Mon Sep 17 00:00:00 2001 From: vlst-odoo Date: Thu, 4 Jan 2024 12:00:01 +0100 Subject: [PATCH] [IMP] point_of_sale: Market Odoo on receipts In this commit we add a line on the receipt with the text "Odoo Point of Sale" or "Odoo Restaurant". ( depending on the case) This is done for marketing reasons. closes odoo/odoo#148094 Task: 3635645 Signed-off-by: Joseph Caburnay (jcb) --- .../src/app/screens/receipt_screen/receipt/order_receipt.xml | 1 + .../components/receipt_screen/order_receipt/order_receipt.xml | 4 ++++ addons/pos_restaurant/static/src/overrides/models/models.js | 1 + 3 files changed, 6 insertions(+) diff --git a/addons/point_of_sale/static/src/app/screens/receipt_screen/receipt/order_receipt.xml b/addons/point_of_sale/static/src/app/screens/receipt_screen/receipt/order_receipt.xml index 32b407fdd47..4fd3c8ca645 100644 --- a/addons/point_of_sale/static/src/app/screens/receipt_screen/receipt/order_receipt.xml +++ b/addons/point_of_sale/static/src/app/screens/receipt_screen/receipt/order_receipt.xml @@ -133,6 +133,7 @@
+

Odoo Point of Sale

diff --git a/addons/pos_restaurant/static/src/overrides/components/receipt_screen/order_receipt/order_receipt.xml b/addons/pos_restaurant/static/src/overrides/components/receipt_screen/order_receipt/order_receipt.xml index 46e767848b2..14165c70e02 100644 --- a/addons/pos_restaurant/static/src/overrides/components/receipt_screen/order_receipt/order_receipt.xml +++ b/addons/pos_restaurant/static/src/overrides/components/receipt_screen/order_receipt/order_receipt.xml @@ -37,6 +37,10 @@
+ +

Odoo Restaurant

+

Odoo Point of Sale

+
diff --git a/addons/pos_restaurant/static/src/overrides/models/models.js b/addons/pos_restaurant/static/src/overrides/models/models.js index a3c03ebf9f7..00dbd0b7105 100644 --- a/addons/pos_restaurant/static/src/overrides/models/models.js +++ b/addons/pos_restaurant/static/src/overrides/models/models.js @@ -51,6 +51,7 @@ patch(Order.prototype, { return { ...super.export_for_printing(...arguments), set_tip_after_payment: this.pos.config.set_tip_after_payment, + isRestaurant: this.pos.config.module_pos_restaurant, }; }, });