Skip to content

Commit

Permalink
[IMP] pos_debranding: remove odoo mention in order receipt
Browse files Browse the repository at this point in the history
Introduced in [1] and followed in [2]

[1] odoo/odoo#148094
[2] odoo/odoo#177081
  • Loading branch information
em230418 committed Nov 5, 2024
1 parent bf2fccb commit 9b6df76
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pos_debranding/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Removes references to odoo.com:

- Replaces POS title

- Removes mention in order receipt

**Table of contents**

.. contents::
Expand Down
2 changes: 2 additions & 0 deletions pos_debranding/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ Removes references to odoo.com:
- Deletes odoo logo

- Replaces POS title

- Removes mention in order receipt
1 change: 1 addition & 0 deletions pos_debranding/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ <h1 class="title">POS debranding</h1>
<ul class="simple">
<li>Deletes odoo logo</li>
<li>Replaces POS title</li>
<li>Removes mention in order receipt</li>
</ul>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
Expand Down
13 changes: 13 additions & 0 deletions pos_debranding/static/src/xml/pos_debranding.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,17 @@
<attribute name="style">display: none !important</attribute>
</xpath>
</t>

<t
t-name="pos_debranding.OrderReceipt"
t-inherit="point_of_sale.OrderReceipt"
t-inherit-mode="extension"
>
<xpath
expr="//div[hasclass('pos-receipt-order-data')]/p[1]"
position="attributes"
>
<attribute name="style">display: none !important</attribute>
</xpath>
</t>
</templates>

0 comments on commit 9b6df76

Please sign in to comment.