DEV Community

Jeevachaithanyan Sivanandan
Jeevachaithanyan Sivanandan

Posted on

1

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)

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay