feat: replace XML patch with CSS to hide powered by text in POS receipts
This commit is contained in:
parent
561dc9a816
commit
e77f71e3cf
@ -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': [
|
||||
|
||||
3
static/src/css/hide_powered_by.css
Normal file
3
static/src/css/hide_powered_by.css
Normal file
@ -0,0 +1,3 @@
|
||||
.pos-receipt .pos-receipt-order-data.text-center.pt-3 {
|
||||
display: none !important;
|
||||
}
|
||||
@ -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>
|
||||
Loading…
Reference in New Issue
Block a user