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:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- 프로젝트
- MRP
신고된 질문입니다
1
회신
5433
화면
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
|
3397 | ||
|
|
1
4월 25
|
2415 | ||
|
one2one relational field
해결 완료
|
|
3
9월 24
|
16103 | |
|
|
2
2월 24
|
3465 | ||
|
|
1
7월 23
|
3509 |