Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
3519 Tampilan

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
Buang
Jawaban Terbai


Hello Rutger Meekers ,

Hope you are doing well. 

Please change your xml code: 

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

Avatar
Buang

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

Penulis Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Mar 22
6922
1
Nov 19
8411
2
Des 24
9073
3
Des 24
2569
1
Jan 24
2953