refactor: update branding overrides and remove unnecessary dependencies in manifest

This commit is contained in:
Suherdy Yacob 2026-06-02 09:33:19 +07:00
parent 343766c4f6
commit 9493bf52e0
4 changed files with 10 additions and 16 deletions

View File

@ -23,8 +23,6 @@ Customized areas:
'website', 'website',
'mail', 'mail',
'point_of_sale', 'point_of_sale',
'pos_custom_receipt',
'app_odoo_customize',
], ],
'data': [ 'data': [
'views/web_templates.xml', 'views/web_templates.xml',

View File

@ -1,17 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve"> <templates id="template" xml:space="preserve">
<t t-name="hide_powered_by_odoo.CustomerDisplay" t-inherit="point_of_sale.CustomerDisplay" t-inherit-mode="extension"> <t t-name="hide_powered_by_odoo.CustomerDisplay" t-inherit="point_of_sale.CustomerDisplay" t-inherit-mode="extension">
<!-- Replace the sidebar brand logo/text --> <!-- Replace the Odoo Logo in the sidebar with IT Mapan -->
<xpath expr="//div[hasclass('o_customer_display_sidebar')]/div[contains(., 'Powered by')]" position="replace"> <xpath expr="//div[hasclass('o_customer_display_sidebar')]//OdooLogo" position="replace">
<div class="position-absolute bottom-0 mb-4 d-none d-lg-flex align-items-center ps-3 pe-2 py-1 rounded-3 text-bg-dark small"> <b class="ms-1 text-white">IT Mapan</b>
Powered by <b class="ms-1">IT Mapan</b>
</div>
</xpath> </xpath>
<!-- Replace the main brand logo/text at the bottom --> <!-- Replace the Odoo Logo in the main customer display with IT Mapan -->
<xpath expr="//div[hasclass('o_customer_display_main')]//div[contains(@class, 'bottom-0') and contains(., 'Powered by')]" position="replace"> <xpath expr="//div[hasclass('o_customer_display_main')]//OdooLogo" position="replace">
<div class="bottom-0 mb-4 d-flex align-items-center ps-3 pe-2 py-1 rounded-3 small"> <b class="ms-1">IT Mapan</b>
Powered by <b class="ms-1">IT Mapan</b>
</div>
</xpath> </xpath>
</t> </t>
</templates> </templates>

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve"> <templates id="template" xml:space="preserve">
<t t-name="hide_powered_by_odoo.OrderReceipt" t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension"> <t t-name="hide_powered_by_odoo.OrderReceipt" t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension">
<!-- Append Powered by IT Mapan to the bottom of the receipt container --> <!-- Replace Powered by Odoo with Powered by IT Mapan on the receipt -->
<xpath expr="//div[hasclass('pos-receipt')]" position="inside"> <xpath expr="//div[contains(@class, 'pos-receipt-order-data') and contains(., 'Powered by')]" position="replace">
<div class="pos-receipt-order-data text-center pt-3"> <div class="pos-receipt-order-data text-center pt-3">
<span>Powered by <b> IT Mapan </b></span> <span>Powered by <b> IT Mapan </b></span>
</div> </div>

View File

@ -18,8 +18,8 @@
<!-- 3. Portal Record Sidebar Override (Portal) --> <!-- 3. Portal Record Sidebar Override (Portal) -->
<template id="portal_record_sidebar" inherit_id="portal.portal_record_sidebar"> <template id="portal_record_sidebar" inherit_id="portal.portal_record_sidebar">
<xpath expr="//div[contains(@class, 'card-footer')]/a[contains(@href, 'odoo.com')]" position="replace"> <xpath expr="//div[contains(@class, 'text-muted') and contains(., 'Powered by')]/a[contains(@href, 'odoo.com')]" position="replace">
<span class="badge text-bg-light">IT Mapan</span> <b class="ms-1">IT Mapan</b>
</xpath> </xpath>
</template> </template>