Skip to main content

Base module to hide new partner address fields in pdf

Project description

License: AGPL-3

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:

  1. Only install

Configuration

To configure this module, you need to:

  1. 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

Authors

  • Sygel, Odoo Community Association (OCA)

Contributors

Maintainer

This module is maintained by Sygel.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

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

File hashes

Hashes for odoo_addon_partner_address_hide_pdf_fields-17.0.1.0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 049ab873acc82392d7b899df0c636f3b51fe927e91ac9b68be32e74f2ad32f2a
MD5 8b48626e1ee5dfb616e1acaadc87a92f
BLAKE2b-256 0e3e2b359f9742612dfa8a2fca6857db59b1d4d63e9b494c41b92779fc8524dd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page