1

I have inherited the res.partner model and added a custom field named "firm1" Now, I need to display this field on every report in the address block. To configure this I went to contacts > Countries > 'My Country' and tried to add my custom field like this:

demonstration of how I tried to add the custom field

however, when saving I get the message "The layout contains an invalid format key"

enter image description here

unnamed-dev
  • 165
  • 8

1 Answers1

2

You probably have to override either res.partner._address_fields() or res.partner._formatting_address_fields() to add your new field to the returned list of address field names.

CZoellner
  • 13,553
  • 3
  • 25
  • 38