How to display the client's country fields in the sale.order view ?
i am odoo V10 with studio
MErci d'avance.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
1
回覆
5079
瀏覽次數
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="{"always_reload": True}"/>
Hope this will help you...
Thanks!
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
|
3
5月 25
|
2041 | ||
|
1
4月 25
|
1522 | ||
|
3
9月 24
|
14590 | ||
|
2
2月 24
|
2664 | ||
|
1
7月 23
|
2883 |