Base module to hide new partner address fields in pdf
Project description
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
Installation
To install this module, you need to:
Only install
Configuration
To configure this module, you need to:
Only install
Usage
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'
]
Bug Tracker
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.
Credits
Contributors
-
Valentín Vinagre
Alberto Martínez
Maintainers
This module is part of the sygel-technology/sy-partner-contact project on GitHub.
You are welcome to contribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo_addon_partner_address_hide_pdf_fields-18.0.1.0.0.1-py3-none-any.whl.
File metadata
- Download URL: odoo_addon_partner_address_hide_pdf_fields-18.0.1.0.0.1-py3-none-any.whl
- Upload date:
- Size: 41.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff661cdccc569533be44e7f31b25bc3119569ebc37e2b8c94f284a611641d7ff
|
|
| MD5 |
4be62834f2b35525a60599a80f326eb9
|
|
| BLAKE2b-256 |
c13bb52cfa31338329780dd53958799ed1505b7b2ba4f5b109678ec58eebefad
|