This module adds base methods in res partner to hide new address fields in PDF but not in the res_partner_many_to_one internal widget.
It is a technical module meant to be used by developers: it does not change any behavior on its own. When combined with another module that adds new fields to the partner address, it allows those fields to be shown in the UI but hidden from the address printed in documents like invoices or quotations.
Table of contents
To install this module, you need to:
- Only install
To configure this module, you need to:
- Only install
Suppose you have a new module that adds two fields: 'field_id' and 'field_name'
To use this module, you need to inherit it in your new module, and add the new fields to the _hided_in_pdf_address_fields() function of 'res.partner':
@api.model
def _hided_in_pdf_address_fields(self):
return super()._hided_in_pdf_address_fields() + [
'field_id',
'field_name'
]
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
- Sygel
- Sygel:
- Valentín Vinagre
- Alberto Martínez
This module is part of the sygel-technology/sy-partner-contact project on GitHub.
You are welcome to contribute.


