Skip to Content
Menu
This question has been flagged
2 Replies
2565 Views

My goal is to remove part of the links in My Portal.

To accomplish this, I want to override the "Show Quotations / Sales Orders" extension view which extends "My Portal".

This is the extension view:


<?xml version="1.0"?>


<data name="Show Quotations / Sales Orders" customize_show="True" inherit_id="portal.portal_my_home" priority="20">


        <xpath expr="//div[hasclass('o_portal_docs')]" position="inside">


            <t t-call="portal.portal_docs_entry">


                <t t-set="title">Quotations</t>


                <t t-set="url" t-value="'/my/quotes'"/>


                <t t-set="placeholder_count" t-value="'quotation_count'"/>


            </t>


            <t t-call="portal.portal_docs_entry">


                <t t-set="title">Sales Orders</t>


                <t t-set="url" t-value="'/my/orders'"/>


                <t t-set="placeholder_count" t-value="'order_count'"/>


            </t>


        </xpath>


    </data>




    



How can I do this? There is nothing in the parent (My Portal) to override because there are 5 extension views injecting data like this

expr="//div[hasclass('o_portal_docs')]" position="inside"


Avatar
Discard
Best Answer


Hello Rutger Meekers ,

Hope you are doing well. 

Please change your xml code: 

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Discard

<template id="sale.portal_my_home_sale" name="Show Quotations / Sales Orders" customize_show="True" inherit_id="portal.portal_my_home" priority="20">
<xpath expr="//div[hasclass('o_portal_docs')]" position="inside">
<t t-call="portal.portal_docs_entry">
<t t-set="title">Quotations</t>
<t t-set="url" t-value=""/>
<t t-set="placeholder_count" t-value="'quotation_count'"/>
</t>
<t t-call="portal.portal_docs_entry">
<t t-set="title">Sales Orders</t>
<t t-set="url" t-value=""/>
<t t-set="placeholder_count" t-value="'order_count'"/>
</t>
</xpath>
</template>

Author Best Answer

This code simply adds the items to the already list under 'My Portal' it doesn't remove them?

Avatar
Discard
Related Posts Replies Views Activity
1
Mar 22
5243
1
Nov 19
7131
3
Dec 24
693
1
Jan 24
1660
0
Nov 23
2039