This question has been flagged
1 Reply
6238 Views

In company configuration the following code gives Company Name, Street, Street2, City, City Code, Zip Code and Country. <para style="main_header">[[ display_address(company.partner_id) or '' ]]</para> How can I modify the code so that it should give Company Name, Street, Street2, City, Zip Code, Fed. State and Country?

The main header should be displayed like below: Company name Street Street2 City Zip Code Fed. State Country Türkiye

Avatar
Discard

Should all addresses from the country of the main company be printed in the same way?

Author

Yes, be printed in the same way.

Then Fabrice's suggestion is what you need - this will change all addresses to print in the same way - company included.

Author

Thank you, I did it.

Best Answer

You can change the formatting of addresses in Sales > Configuration > Address Book > Localization > Countries

Avatar
Discard
Author

Thank you for your answer. I input %(state_id)s in the code but it gives this: browse_record(res.country.state, 54)

Author

I found the solution: just changed %(state_id)s by %(state_name)s