From e77f71e3cf76f0f92375909100d4f39e5282ff70 Mon Sep 17 00:00:00 2001 From: Suherdy Yacob Date: Fri, 5 Jun 2026 13:53:29 +0700 Subject: [PATCH] feat: replace XML patch with CSS to hide powered by text in POS receipts --- __manifest__.py | 2 +- static/src/css/hide_powered_by.css | 3 +++ static/src/order_receipt_patch.xml | 7 ------- 3 files changed, 4 insertions(+), 8 deletions(-) create mode 100644 static/src/css/hide_powered_by.css delete mode 100644 static/src/order_receipt_patch.xml diff --git a/__manifest__.py b/__manifest__.py index 62da528..a5ecb18 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -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': [ diff --git a/static/src/css/hide_powered_by.css b/static/src/css/hide_powered_by.css new file mode 100644 index 0000000..71206a6 --- /dev/null +++ b/static/src/css/hide_powered_by.css @@ -0,0 +1,3 @@ +.pos-receipt .pos-receipt-order-data.text-center.pt-3 { + display: none !important; +} diff --git a/static/src/order_receipt_patch.xml b/static/src/order_receipt_patch.xml deleted file mode 100644 index bf03b75..0000000 --- a/static/src/order_receipt_patch.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - -