feat: add custom logo support to POS screensaver via XML patch

This commit is contained in:
Suherdy Yacob 2026-06-02 17:16:13 +07:00
parent 9493bf52e0
commit 338792a8e4
4 changed files with 11 additions and 1 deletions

View File

@ -1,7 +1,7 @@
Hide Powered by Odoo (IT Mapan)
===============================
This module customizes various templates to replace all instances of "Powered by Odoo" with "Powered by IT Mapan".
This module customizes various templates to replace all instances of "Powered by Odoo" with "Powered by IT Mapan" and overrides the POS sleep/screensaver logo.
Features:
- Replaces Odoo logo/text on POS Customer Display sidebar and main section.
@ -9,3 +9,4 @@ Features:
- Overrides login footer page to show "Powered by IT Mapan".
- Replaces Odoo branding in Portal/Website promotion widgets.
- Replaces Odoo branding in Email notifications layouts.
- Replaces the big Odoo logo on the POS sleep screen (screensaver) with the customized logo.

View File

@ -30,6 +30,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/saver_screen_patch.xml',
],
'point_of_sale.customer_display_assets': [
'hide_powered_by_odoo/static/src/customer_display_patch.xml',

BIN
static/src/img/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="hide_powered_by_odoo.SaverScreen" t-inherit="point_of_sale.SaverScreen" t-inherit-mode="extension">
<xpath expr="//div[hasclass('pos-logo')]" position="replace">
<img class="w-100 h-25" src="/hide_powered_by_odoo/static/src/img/logo.png" style="object-fit: contain; pointer-events: none;"/>
</xpath>
</t>
</templates>