Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
5076 Weergaven
How to display the client's country fields in the sale.order view ?
i am odoo V10 with studio
MErci d'avance.

Avatar
Annuleer
Beste antwoord

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!

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
mei 25
2038
1
apr. 25
1520
3
sep. 24
14590
2
feb. 24
2663
1
jul. 23
2882