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
ตอบกลับ
5066
มุมมอง
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!
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
3
พ.ค. 25
|
2032 | ||
|
1
เม.ย. 25
|
1516 | ||
one2one relational field
แก้ไขแล้ว
|
|
3
ก.ย. 24
|
14582 | |
|
2
ก.พ. 24
|
2662 | ||
|
1
ก.ค. 23
|
2880 |