Skip to main content

Base module to hide new partner address fields in pdf

Project description

Beta License: AGPL-3 sygel-technology/sy-partner-contact

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

Authors

  • Sygel

Contributors

  • Sygel:

    • 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


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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_partner_address_hide_pdf_fields-18.0.1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_partner_address_hide_pdf_fields-18.0.1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77591202a6e4bdc98991101d32cf318c0dc840d0301d96deb29587bc967661f6
MD5 34d72a71d48229acb68f03dfc65073b2
BLAKE2b-256 c42fdda4bd39fc8d4d3850d006385b6df969ce94c174740c7796a034cc1cf365

See more details on using hashes here.

Supported by

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