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
- Účetnictví
- Sklad
- PoS
- Project
- MRP
This question has been flagged
1
Odpovědět
5062
Zobrazení
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!
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit seRelated Posts | Odpovědi | Zobrazení | Aktivita | |
---|---|---|---|---|
|
3
kvě 25
|
2031 | ||
|
1
dub 25
|
1514 | ||
one2one relational field
Vyřešeno
|
|
3
zář 24
|
14564 | |
|
2
úno 24
|
2659 | ||
|
1
čvc 23
|
2879 |