Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
5362 Visninger

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 


Avatar
Kassér

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

Forfatter

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

Bedste svar

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


Avatar
Kassér
Bedste svar

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

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
mar. 15
7114
2
mar. 15
7654
3
dec. 22
3364
1
apr. 22
6918
5
jan. 22
11746