From f33d6d4409208eeeefe0f32105e4ab04c6da3c00 Mon Sep 17 00:00:00 2001 From: Tran Thanh Phuc Date: Fri, 12 Feb 2021 22:13:38 +0700 Subject: [PATCH] [IMP] partner_identification: black, isort, prettier --- partner_identification/models/res_partner.py | 6 +++--- .../odoo/addons/partner_identification | 1 + setup/partner_identification/setup.py | 6 ++++++ 3 files changed, 10 insertions(+), 3 deletions(-) create mode 120000 setup/partner_identification/odoo/addons/partner_identification create mode 100644 setup/partner_identification/setup.py diff --git a/partner_identification/models/res_partner.py b/partner_identification/models/res_partner.py index 3f2f2b1de..497e428bb 100644 --- a/partner_identification/models/res_partner.py +++ b/partner_identification/models/res_partner.py @@ -21,7 +21,7 @@ class ResPartner(models.Model): @api.depends("id_numbers") def _compute_identification(self, field_name, category_code): - """ Compute a field that indicates a certain ID type. + """Compute a field that indicates a certain ID type. Use this on a field that represents a certain ID type. It will compute the desired field as that ID(s). @@ -62,7 +62,7 @@ class ResPartner(models.Model): record[field_name] = value def _inverse_identification(self, field_name, category_code): - """ Inverse for an identification field. + """Inverse for an identification field. This method will create a new record, or modify the existing one in order to allow for the associated field to work like a Char. @@ -134,7 +134,7 @@ class ResPartner(models.Model): @api.model def _search_identification(self, category_code, operator, value): - """ Search method for an identification field. + """Search method for an identification field. Example: diff --git a/setup/partner_identification/odoo/addons/partner_identification b/setup/partner_identification/odoo/addons/partner_identification new file mode 120000 index 000000000..120bd579e --- /dev/null +++ b/setup/partner_identification/odoo/addons/partner_identification @@ -0,0 +1 @@ +../../../../partner_identification \ No newline at end of file diff --git a/setup/partner_identification/setup.py b/setup/partner_identification/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/partner_identification/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)