[FIX] mrp_subcontracting: fixes the breadcrumb issue indicates 'projects' twice
Steps to Reproduce: - install service apps and website - install website related bridge modules - install quality and related mrp_subcontracting bridge module - click on website , click on My account - click on project ,or timesheet,or tasks,or tickets Issue: - after clicking,we will notice that breadcrumb indicates 'title' twice Cause: - this is because,in mrp_subcontracting , the title for productions is given without checking the page_name , so that will affect all the titles. Solution: - if we gave condition to check the page name for production this issue is solved. task-3607053 closes odoo/odoo#144477 Signed-off-by: William Henrotin (whe) <whe@odoo.com>
This commit is contained in:
@@ -19,13 +19,10 @@
|
||||
<template id="portal_my_home_menu_production" name="Portal layout : production menu entries" inherit_id="portal.portal_breadcrumbs" priority="25">
|
||||
<xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside">
|
||||
<t t-if="title">
|
||||
<li t-attf-class="breadcrumb-item #{'active' if breadcrumbs_url else ''}">
|
||||
<li t-if="page_name == 'production' or production" t-attf-class="breadcrumb-item #{'active' if breadcrumbs_url else ''}">
|
||||
<a t-if="breadcrumbs_url" t-attf-href="/my/productions{{ keep_query() }}">Productions</a>
|
||||
<t t-else="" t-esc="title"></t>
|
||||
</li>
|
||||
<li t-attf-class="breadcrumb-item">
|
||||
<a t-if="breadcrumbs_url"><t t-esc="title"/></a>
|
||||
</li>
|
||||
</t>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user