Hi all, I am new to Odoo development.
The /my/orders route loads the sale.portal_my_orders template (and the first thing this template does is call the portal.portal_layout template). I have added an extra menu above the list of sales orders (see code below), but it also shows up on the /my/account route, which I don't want.
I've tried to find a solution with little success. I was able to use <t t-set="is_my_orders_page" t-value="true"> on the sale.portal_my_orders call for the orders page, then use <t t-if="is_my_orders_page"> to conditionally render the menu in my custom module. This does work, but I would rather find a solution where I don't modify any code outside of my custom module.
Templates in my custom module:
And the code I changed in sale.portal_my_orders: