[FIX] *: BS4, restore some portal breadcrumb
The new 'breadcrumb-item' class was missing at some places.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<odoo>
|
||||
<template id="portal_my_home_menu_invoice" name="Portal layout : invoice menu entries" inherit_id="portal.portal_layout" priority="30">
|
||||
<xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside">
|
||||
<li t-if="page_name == 'invoice'" class="active">
|
||||
<li t-if="page_name == 'invoice'" class="breadcrumb-item active">
|
||||
<a t-if="invoice" t-attf-href="/my/invoices?{{ keep_query() }}">Invoices</a>
|
||||
<t t-else="">Invoices</t>
|
||||
</li>
|
||||
<li t-if="invoice">
|
||||
<li t-if="invoice" class="breadcrumb-item">
|
||||
<t t-esc="invoice.number"/>
|
||||
</li>
|
||||
</xpath>
|
||||
|
||||
@@ -2,18 +2,18 @@
|
||||
<odoo>
|
||||
<template id="portal_layout" name="Portal layout: project menu entry" inherit_id="portal.portal_layout" priority="40">
|
||||
<xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside">
|
||||
<li t-if="page_name == 'project' or project">
|
||||
<li t-if="page_name == 'project' or project" class="breadcrumb-item">
|
||||
<a t-if="project" t-attf-href="/my/projects?{{ keep_query() }}">Projects</a>
|
||||
<t t-else="">Projects</t>
|
||||
</li>
|
||||
<li t-if="project">
|
||||
<li t-if="project" class="breadcrumb-item">
|
||||
<t t-esc="project.name"/>
|
||||
</li>
|
||||
<li t-if="page_name == 'task' or task">
|
||||
<li t-if="page_name == 'task' or task" class="breadcrumb-item">
|
||||
<a t-if="task" t-attf-href="/my/tasks?{{ keep_query() }}">Tasks</a>
|
||||
<t t-else="">Tasks</t>
|
||||
</li>
|
||||
<li t-if="task">
|
||||
<li t-if="task" class="breadcrumb-item">
|
||||
<span t-field="task.name"/>
|
||||
</li>
|
||||
</xpath>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
<template id="portal_my_home_menu_purchase" name="Portal layout : purchase menu entries" inherit_id="portal.portal_layout" priority="25">
|
||||
<xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside">
|
||||
<li t-if="page_name == 'purchase' or purchase_order">
|
||||
<li t-if="page_name == 'purchase' or purchase_order" class="breadcrumb-item">
|
||||
<a t-if="purchase_order" t-attf-href="/my/purchase?{{ keep_query() }}">Purchase Orders</a>
|
||||
<t t-else="">Purchase Orders</t>
|
||||
</li>
|
||||
<li t-if="purchase_order">
|
||||
<li t-if="purchase_order" class="breadcrumb-item">
|
||||
<t t-esc="purchase_order.name"/>
|
||||
</li>
|
||||
</xpath>
|
||||
|
||||
@@ -189,7 +189,7 @@
|
||||
</template>
|
||||
<template id="portal_my_home_menu_lead" name="Portal layout : lead menu entry" inherit_id="portal.portal_layout" priority="15">
|
||||
<xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside">
|
||||
<li t-if="page_name == 'lead' or lead">
|
||||
<li t-if="page_name == 'lead' or lead" class="breadcrumb-item">
|
||||
<a t-if="lead" t-attf-href="/my/leads?{{ keep_query() }}">
|
||||
My Leads
|
||||
</a>
|
||||
@@ -197,10 +197,10 @@
|
||||
My Leads
|
||||
</t>
|
||||
</li>
|
||||
<li t-if="lead">
|
||||
<li t-if="lead" class="breadcrumb-item">
|
||||
<span t-field="lead.name"/>
|
||||
</li>
|
||||
<li t-if="page_name == 'opportunity' or opportunity">
|
||||
<li t-if="page_name == 'opportunity' or opportunity" class="breadcrumb-item">
|
||||
<a t-if="opportunity" t-attf-href="/my/opportunities?{{ keep_query() }}">
|
||||
My Opportunities
|
||||
</a>
|
||||
@@ -208,7 +208,7 @@
|
||||
My Opportunities
|
||||
</t>
|
||||
</li>
|
||||
<li t-if="opportunity">
|
||||
<li t-if="opportunity" class="breadcrumb-item">
|
||||
<span t-field="opportunity.name"/>
|
||||
</li>
|
||||
</xpath>
|
||||
|
||||
Reference in New Issue
Block a user