I have a customer field in my module, which looks like this:
customer = fields.Many2one('res.partner', string='Customer')
In my form view, I display it like this:
<field name="customer" context="{'show_address': 1}" options="{'always_reload': True}"/>
This displays the address only after I save the record. But I want it to show the customer's address before the record is saved.
I could just create a few fields to represent the customer address, but I want to see if there is a better way of showing the address. Any ideas?