Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5069 Lượt xem
How to display the client's country fields in the sale.order view ?
i am odoo V10 with studio
MErci d'avance.

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

Hi VDJ SAS,

Here you can do this by

  • creating new field or

  • adding context(It will display city, state, etc too)

Like 

1) By new field(Create new field in sale.order in your custom module)

related_partner_country = fields.Char("Customer Country", related="partner_id.country_id.name")

2) By adding context in view

<field name="partner_id" domain="[('customer','=',True)]" context="{'search_default_customer':1,'show_address': 1}" options="{&quot;always_reload&quot;: True}"/>

Hope this will help you...

Thanks!

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 5 25
2035
1
thg 4 25
1519
3
thg 9 24
14587
2
thg 2 24
2663
1
thg 7 23
2882