Base module to hide new partner address fields in pdf
Project description
Partner Address Hide PDF Fields
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
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’:
class ResPartner(models.Model):
_inherit = '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 and errors are managed in issues of GitHub. In case of problems, please check if your problem has already been reported. If you are the first to discover it, help us solving it by indicating a detailed description here.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
Valentin Vinagre <valentin.vinagre@sygel.es>
Alberto Martínez <alberto.martinez@sygel.es>
Maintainer
This module is maintained by Sygel.
This module is part of the Sygel/sy-partner-contact.
To contribute to this module, please visit https://github.com/sygel-technology/.
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
File details
Details for the file odoo_addon_partner_address_hide_pdf_fields-17.0.1.0.0.1-py3-none-any.whl
.
File metadata
- Download URL: odoo_addon_partner_address_hide_pdf_fields-17.0.1.0.0.1-py3-none-any.whl
- Upload date:
- Size: 33.2 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 | 049ab873acc82392d7b899df0c636f3b51fe927e91ac9b68be32e74f2ad32f2a |
|
MD5 | 8b48626e1ee5dfb616e1acaadc87a92f |
|
BLAKE2b-256 | 0e3e2b359f9742612dfa8a2fca6857db59b1d4d63e9b494c41b92779fc8524dd |