[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) <jcb@odoo.com>
This commit is contained in:
vlst-odoo
2024-01-09 10:00:22 +00:00
parent f4ac261bbb
commit 8bbc99d576
3 changed files with 6 additions and 0 deletions
@@ -133,6 +133,7 @@
<br/>
<div class="pos-receipt-order-data">
<p>Odoo Point of Sale</p>
<div t-esc="props.data.name" />
<div t-esc="props.data.date" />
</div>
@@ -37,6 +37,10 @@
</div>
</t>
</xpath>
<xpath expr="//p[text()='Odoo Point of Sale']" position="replace">
<p t-if="props.data.isRestaurant">Odoo Restaurant</p>
<p t-else="">Odoo Point of Sale</p>
</xpath>
</t>
<t t-name="pos_restaurant.ReceiptHeader" t-inherit="point_of_sale.ReceiptHeader" t-inherit-mode="extension">
<xpath expr="//div[hasclass('cashier')]" position="after">
@@ -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,
};
},
});