Odoo Help


How can i change address format in customer form view?

Stefan Reisich
on 5/16/13, 1:30 PM 2,892 views


how can i change the address format in customers form view? Can it be changed by configuration or i need a module for this? image description

Thank you.


Brett Lehrer

--Brett Lehrer--

| 5 5 8
Milwaukee, United States
--Brett Lehrer--
Director of IT and open source enthusiast.
Brett Lehrer
On 5/16/13, 1:34 PM

That needs to be changed in the XML view declaration of the form. For a quick change you can enable developer mode, go to the form and click "Edit FormView", then swap the city and zip tags.

A much better solution is to create a module and inherit that view, then replace the city field with zip and the zip field with city.

i know that. but i want change the format in the customer form view...

Rove.design GmbH, Stefan Reisich
on 5/16/13, 1:35 PM

I'm not sure what you mean by that. Change the order of the fields themselves when looking at a customer record?

Brett Lehrer
on 5/16/13, 1:37 PM

i updated my question with an image..

Rove.design GmbH, Stefan Reisich
on 5/16/13, 1:39 PM

ok, thank you very much. so there is no config for this and i need to create a module...

Rove.design GmbH, Stefan Reisich
on 5/16/13, 1:47 PM
Markku Luosto
On 5/16/13, 6:27 PM

Could you check the following possible configuration available for each country:

Sales->Configuration->Address Book->Localization->Countries

Open your country and edit

%(city)s %(state_code)s %(zip)s


%(zip)s %(state_code)s %(city)s

Will this help you?

PS. In reports use <display_address(o.partner_id)> when printing the address.

the address format at this place is right. if i change something there it will not change the form view...

Rove.design GmbH, Stefan Reisich
on 5/17/13, 5:27 AM

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.


Odoo Training Center

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

Test it now

Question tools

1 follower(s)


Asked: 5/16/13, 1:30 PM
Seen: 2892 times
Last updated: 3/16/15, 8:10 AM