Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3531 Widoki

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"


Awatar
Odrzuć
Najlepsza odpowiedź


Hello Rutger Meekers ,

Hope you are doing well. 

Please change your xml code: 

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

Awatar
Odrzuć

<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 Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
mar 22
6939
1
lis 19
8445
2
gru 24
9107
3
gru 24
2601
1
sty 24
2964