Metadata-Version: 2.1
Name: odoo-addon-partner_address_hide_pdf_fields
Version: 18.0.1.1.0
Requires-Python: >=3.10
Requires-Dist: odoo==18.0.*
Summary: Base module to hide new partner address fields in pdf
Home-page: https://github.com/sygel-technology/sy-partner-contact
License: AGPL-3
Author: Sygel
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 18.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Description-Content-Type: text/x-rst

===============================
Partner Address Hide PDF Fields
===============================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:3aab2a28adc4bac67b9f8fed3a51604cb94effd3598893de3e463e61bac5bc02
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-sygel--technology%2Fsy--partner--contact-lightgray.png?logo=github
    :target: https://github.com/sygel-technology/sy-partner-contact/tree/18.0/partner_address_hide_pdf_fields
    :alt: sygel-technology/sy-partner-contact

|badge1| |badge2| |badge3|

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**

.. contents::
   :local:

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 <https://github.com/sygel-technology/sy-partner-contact/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 <https://github.com/sygel-technology/sy-partner-contact/issues/new?body=module:%20partner_address_hide_pdf_fields%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Sygel

Contributors
------------

- `Sygel <https://www.sygel.es>`__:

  - Valentín Vinagre
  - Alberto Martínez

Maintainers
-----------

This module is part of the `sygel-technology/sy-partner-contact <https://github.com/sygel-technology/sy-partner-contact/tree/18.0/partner_address_hide_pdf_fields>`_ project on GitHub.

You are welcome to contribute.
