Skip to content

Commit d388b49

Browse files
committed
⬆️ pos_debranding: port to v14
1 parent 0e4124e commit d388b49

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

pos_debranding/README.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88

99
Removes references to odoo.com:
1010

11-
* Deletes odoo logo
11+
* Replaces Odoo logo with company logo, i.e. ``/logo.png``
12+
13+
Roadmap
14+
=======
15+
16+
* ``/logo.png`` should be used with ``?company_id=123`` to avoid cache issues on multi-company environment
1217

1318
Further information
1419
===================
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<templates id="template" xml:space="preserve">
3-
<t t-extend="Chrome">
4-
<t t-jquery=".pos-logo" t-operation="replace">
5-
<!--
6-
<img class="pos-logo" src="/your_custom_module/static/src/img/logo.png" />
7-
-->
8-
</t>
3+
<t
4+
t-name="Chrome"
5+
t-inherit="point_of_sale.Chrome"
6+
t-inherit-mode="extension"
7+
owl="1"
8+
>
9+
<xpath expr="//div[hasclass('pos-branding')]/img" position="attributes">
10+
<attribute name="src">/logo.png</attribute>
11+
</xpath>
912
</t>
1013
</templates>

0 commit comments

Comments
 (0)