DEV Community

Jeevachaithanyan Sivanandan
Jeevachaithanyan Sivanandan

Posted on

Odoo context show address

If you've attempted to display the complete address of a supplier in the purchase form using the provided code:

<attribute name="widget">res_partner_many2one</attribute>
<attribute name="context">{'show_address': 1, 'show_vat': True}</attribute>

Enter fullscreen mode Exit fullscreen mode

But I am sure you might be wondering why the address is not showing. In order to fix it, you better add the below line too

<attribute name="options">{"always_reload": True}</attribute>

Enter fullscreen mode Exit fullscreen mode

After adding this line, don't forget to upgrade the module. Once the upgrade is complete, you should see the full address displayed correctly.

Top comments (0)