Odoo Help

0

0
1 答案
0
Hardik Prajapati (hpr) 印度
2017/6/1 上午4:51

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!

提问
Writer
标签
Keep Informed
1 关注者(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now