I’m using Odoo Online, so I’m not sure if there’s much I can do to fix the issue. I took a screenshot, but unfortunately I can’t attach it here.
The ZIP code is appearing before the state, even though the XML code looks correct. I did try customizing the address layout earlier to better fit our needs, but we eventually reset everything back to default, and ever since then, the formatting has looked off.
Right now, the address displays as: street, street2, then on the third line it shows the city and ZIP code, with the state appearing slightly above and misaligned.
Is there anything I can do to correct this, or is this just a limitation of Odoo Online?
This is a snippet of the XML code
<div class="o_address_format" name="div_address">
<field name="street" placeholder="Street..." class="o_address_street"/>
<field name="street2" placeholder="Street 2..." class="o_address_street"/>
<field name="city" placeholder="City" class="o_address_city"/>
<field name="state_id" class="o_address_state" placeholder="State" options="{'no_open': True, 'no_quick_create': True}" context="{'country_id': country_id, 'default_country_id': country_id, 'zip': zip}"/>
<field name="zip" placeholder="ZIP" class="o_address_zip"/>
<field name="country_id" placeholder="Country" class="o_address_country" options="{"no_open": True, "no_create": True}"/>
</div>