Skip to content

Commit

Permalink
Draft: [MIG] pos_receipt_hide_price: 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
danielduqma committed Nov 14, 2022
1 parent be01fd5 commit 9d0e332
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pos_receipt_hide_price/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"pos_receipt_hide_price/static/src/js/ReceiptScreen.js",
"pos_receipt_hide_price/static/src/js/ReprintReceiptScreen.js",
"pos_receipt_hide_price/static/src/js/OrderReceipt.js",
],
"web.assets_qweb": [
"pos_receipt_hide_price/static/src/xml/**/*",
],
},
Expand Down
5 changes: 3 additions & 2 deletions pos_receipt_hide_price/static/src/xml/OrderReceipt.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<templates id="template" xml:space="preserve">
<t t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension">
<t t-inherit="point_of_sale.OrderLinesReceipt" t-inherit-mode="extension" owl="1">
<!-- Attributes position xpath only apply to first match for some reason: -->
<!-- https://github.com/odoo/odoo/issues/23862 -->
<!-- Simple price -->
Expand Down Expand Up @@ -31,7 +31,8 @@
</div>
</t>
</xpath>

</t>
<t t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension">
<!-- Tax included -->
<xpath expr="//t[@t-if='!isTaxIncluded']/div[1]" position="attributes">
<attribute name="t-att-class">{'oe_hidden': priceHidden}</attribute>
Expand Down

0 comments on commit 9d0e332

Please sign in to comment.