I have been trying to modify the rendering of the item "Quotation" in the submenu highlighted in red in the top left corner to read "Estimate" instead. When I try to use the function 'position="replace">' it seems to add the "Estimate" section to the navigation list in front of the old "Quotation" section, rather than replacing the existing "Quotation". What am I missing?
I am using Odoo Online 17 and I am using inherited views to modify the view architecture.
The above is the inherited view I am creating, the image below is the original architecture:
UPDATE: Solved by using the following:
<data name="Portal layout : sales menu entries_Estimate" inherit_id="sale.portal_my_home_menu_sale">
<xpath expr="//li[@id='portal_breadcrumbs_sale']" position="replace">
<li t-elif="page_name == 'order' or sale_order and sale_order.state not in ('sent', 'cancel')" t-attf-class="breadcrumb-item #{'active ' if not sale_order else ''}">
<a t-if="sale_order" t-attf-href="/my/orders?{{ keep_query() }}">Sales Orders</a>
<t t-else="">Sales Orders</t>
</li>
<li t-if="sale_order" class="breadcrumb-item active">
<span t-if="sale_order.type_name == 'Quotation'">Estimate</span>
<t t-else=""><span t-field="sale_order.type_name"/></t>
<t t-out="sale_order.name"/>
</li>
<!-- <li t-if="sale_order" class="breadcrumb-item active">
<span t-field="sale_order.type_name"/>
<t t-out="sale_order.name"/>
</li> -->
</xpath>
</data>