Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
2035 Vistas

In the Netherlands, the correct adress format requires two spaces between zipcode and city. I am looking for a way to configure this.

I have tried to do  this in the country settings (contacts, settings, localization, countries, Netherlands, advanced adress format, layout in reports), but i am not sure how to add an additional space. Just typing an additional space between %(zip)s %(city)s doesn't have any effect. I also tried to put <![CDATA[&nbsp;]]> or &#nbsp; or  but such statements only lead to the literal text showing up between zipcode and city when printing an (e.g.) salesorder or invoice.

Ideas anyone ?

Avatar
Descartar

In res.partner.py there is _display_address method for formatting the address

Try to override it and change the format. 

Thanks for your answer Waleed. Anything that involves editing .py files is out of my league. Nevertheless, thank you very much for answering my question.