Browse Source

[IMP] partner_identification: black, isort, prettier

14.0
Tran Thanh Phuc 3 years ago
parent
commit
f33d6d4409
  1. 6
      partner_identification/models/res_partner.py
  2. 1
      setup/partner_identification/odoo/addons/partner_identification
  3. 6
      setup/partner_identification/setup.py

6
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:

1
setup/partner_identification/odoo/addons/partner_identification

@ -0,0 +1 @@
../../../../partner_identification

6
setup/partner_identification/setup.py

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
Loading…
Cancel
Save