49 lines
2.6 KiB
XML
49 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Adding a link in the portal menu -->
|
|
<template id="portal_my_home_menu_company" name="Portal My Home : company menu entry" inherit_id="portal.portal_breadcrumbs" priority="30">
|
|
<xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside">
|
|
<li t-if="page_name == 'company' or page_name == 'contacts' or page_name == 'siblings'" class="breadcrumb-item">
|
|
<a t-if="page_name != 'company'" t-attf-href="/my/company">My Company</a>
|
|
<t t-else="">My Company</t>
|
|
</li>
|
|
<li t-if="page_name == 'contacts'" class="breadcrumb-item active">
|
|
Contacts
|
|
</li>
|
|
<li t-if="page_name == 'siblings'" class="breadcrumb-item active">
|
|
Related Companies
|
|
</li>
|
|
</xpath>
|
|
</template>
|
|
|
|
<!-- Ajout d'une carte dans le tableau de bord du portail -->
|
|
<template id="portal_my_home_company" name="Portal My Home : company entry" inherit_id="portal.portal_my_home" priority="30">
|
|
<xpath expr="//div[@id='portal_client_category']" position="before">
|
|
<xpath expr="//div[@id='portal_vendor_category']" position="move"/>
|
|
</xpath>
|
|
<xpath expr="//div[@id='portal_vendor_category']" position="inside">
|
|
<!-- Bloc clients (infos société + contacts) -->
|
|
<div class="o_portal_category row g-2 mt-3" id="portal_client_category">
|
|
<div t-if="has_company" class="o_portal_index_card col-md-6 order-2">
|
|
<a href="/my/company" title="Company Information" class="d-flex gap-2 gap-md-3 py-3 pe-2 px-md-3 h-100 rounded text-decoration-none bg-100">
|
|
<div class="o_portal_icon d-block align-self-start">
|
|
<img src="/portal_partner_manager/static/src/img/company.svg" loading="lazy" style="width: 48px; height: 48px; object-fit: contain;"/>
|
|
</div>
|
|
<div>
|
|
<div class="mt-0 mb-1 fs-5 fw-normal lh-1 d-flex gap-2">
|
|
<span>Information</span>
|
|
</div>
|
|
<div class="opacity-75">
|
|
View or edit your company information
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<!-- XPath pour déplacer vendor avant client si besoin -->
|
|
<xpath expr="//div[@id='portal_client_category']" position="before">
|
|
<xpath expr="//div[@id='portal_vendor_category']" position="move"/>
|
|
</xpath>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|