Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
3518 Zobrazení

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
Zrušit
Nejlepší odpověď


Hello Rutger Meekers ,

Hope you are doing well. 

Please change your xml code: 

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

Avatar
Zrušit

<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>

Autor Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 22
6920
1
lis 19
8406
2
pro 24
9069
3
pro 24
2565
1
led 24
2947