跳至內容
選單
此問題已被標幟
2 回覆
5269 瀏覽次數

Hi, 

In the report is printed the "parent name , partner_name" . 

How do I change this :

                    <address t-field="o.partner_id"

t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}' />

To hide the parent name ? 


Thanks 


頭像
捨棄

Can you specify what report this is? The code says nothing abount parent_name

作者

this is present in all reports SO, PO, Invoice, Delivery order...

最佳答案

Hello @Anabela Damas,

For that you can do this way...

<div t-field="o.partner_id.name"/>
<div t-field="o.partner_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;], &quot;no_marker&quot;: True}"/>


Hope this will help...


頭像
捨棄
最佳答案

Remove name field from contact widget also remove the partner name from the report. I think we have to override the name_get function.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
3月 15
7048
2
3月 15
7543
3
12月 22
3280
1
4月 22
6813
5
1月 22
11622