feat: replace XML patch with CSS to hide powered by text in POS receipts

This commit is contained in:
Suherdy Yacob 2026-06-05 13:53:29 +07:00
parent 561dc9a816
commit e77f71e3cf
3 changed files with 4 additions and 8 deletions

View File

@ -29,7 +29,7 @@ Customized areas:
],
'assets': {
'point_of_sale._assets_pos': [
'hide_powered_by_odoo/static/src/order_receipt_patch.xml',
'hide_powered_by_odoo/static/src/css/hide_powered_by.css',
'hide_powered_by_odoo/static/src/saver_screen_patch.xml',
],
'point_of_sale.customer_display_assets': [

View File

@ -0,0 +1,3 @@
.pos-receipt .pos-receipt-order-data.text-center.pt-3 {
display: none !important;
}

View File

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="hide_powered_by_odoo.OrderReceipt" t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension">
<!-- Hide Powered by Odoo/IT Mapan on the receipt -->
<xpath expr="//div[contains(@class, 'pos-receipt-order-data') and contains(., 'Powered by')]" position="replace"/>
</t>
</templates>