feat: add custom logo support to POS screensaver via XML patch
This commit is contained in:
parent
9493bf52e0
commit
338792a8e4
@ -1,7 +1,7 @@
|
|||||||
Hide Powered by Odoo (IT Mapan)
|
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:
|
Features:
|
||||||
- Replaces Odoo logo/text on POS Customer Display sidebar and main section.
|
- 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".
|
- Overrides login footer page to show "Powered by IT Mapan".
|
||||||
- Replaces Odoo branding in Portal/Website promotion widgets.
|
- Replaces Odoo branding in Portal/Website promotion widgets.
|
||||||
- Replaces Odoo branding in Email notifications layouts.
|
- Replaces Odoo branding in Email notifications layouts.
|
||||||
|
- Replaces the big Odoo logo on the POS sleep screen (screensaver) with the customized logo.
|
||||||
|
|||||||
@ -30,6 +30,7 @@ Customized areas:
|
|||||||
'assets': {
|
'assets': {
|
||||||
'point_of_sale._assets_pos': [
|
'point_of_sale._assets_pos': [
|
||||||
'hide_powered_by_odoo/static/src/order_receipt_patch.xml',
|
'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': [
|
'point_of_sale.customer_display_assets': [
|
||||||
'hide_powered_by_odoo/static/src/customer_display_patch.xml',
|
'hide_powered_by_odoo/static/src/customer_display_patch.xml',
|
||||||
|
|||||||
BIN
static/src/img/logo.png
Normal file
BIN
static/src/img/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 73 KiB |
8
static/src/saver_screen_patch.xml
Normal file
8
static/src/saver_screen_patch.xml
Normal 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>
|
||||||
Loading…
Reference in New Issue
Block a user