跳至内容
菜单
此问题已终结
2 回复
3553 查看

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"


形象
丢弃
最佳答案


Hello Rutger Meekers ,

Hope you are doing well. 

Please change your xml code: 

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

形象
丢弃

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

编写者 最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
1
3月 22
6970
1
11月 19
8473
2
12月 24
9147
3
12月 24
2656
1
1月 24
2985