Skip to Content
Menu
This question has been flagged
1 Reply
5299 Views

The partner_id has a context

{'show_address': 1}

which I thought made the address show inline, but setting the context doesn't seem to accomplish the same thing on partner_shipping_id

<field name="partner_shipping_id" position="attributes">
  <attribute name="context">{'show_address':1,'default_type':'delivery'}</attribute>
</field>

What am I missing?

Avatar
Discard

thanks a million, an answer posted 9 years ago saved my day in 2024  !! :)

Author Best Answer

Seems like I also need to make it always reload as the address is pulled in dynamically.

    <field name="partner_shipping_id" position="attributes">
      <attribute name="context">{'show_address':1,'default_type':'delivery'}</attribute>
      <attribute name="options">{"always_reload": True}</attribute>
    </field>

 

Avatar
Discard

This question answer is literally over 2 years old, but you have no idea the headache you just cleared, so thank you!!

Can confirm this is working in Odoo 11.