Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
5319 Lượt xem

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 


Ảnh đại diện
Huỷ bỏ

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

Tác giả

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

Câu trả lời hay nhất

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


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 15
7079
2
thg 3 15
7588
3
thg 12 22
3313
1
thg 4 22
6853
5
thg 1 22
11680