Browse Source

[IMP] base_import_match: black, isort, prettier

14.0
Jesus Ramoneda 4 years ago
parent
commit
49bec4f38a
  1. 4
      base_import_match/__manifest__.py
  2. 3
      base_import_match/models/base_import.py
  3. 1
      setup/base_import_match/odoo/addons/base_import_match
  4. 6
      setup/base_import_match/setup.py

4
base_import_match/__manifest__.py

@ -4,9 +4,9 @@
{
"name": "Base Import Match",
"summary": "Try to avoid duplicates before importing",
"version": "13.0.1.0.0",
"version": "14.0.1.0.0",
"category": "Tools",
"website": "https://tecnativa.com",
"website": "https://github.com/OCA/server-backend",
"author": "Tecnativa, " "Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,

3
base_import_match/models/base_import.py

@ -164,7 +164,8 @@ class BaseImportMatchField(models.Model):
for one in self:
pattern = u"{name} ({cond})" if one.conditional else u"{name}"
one.display_name = pattern.format(
name=one.field_id.name, cond=one.imported_value,
name=one.field_id.name,
cond=one.imported_value,
)
@api.onchange("field_id", "match_id", "conditional", "imported_value")

1
setup/base_import_match/odoo/addons/base_import_match

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

6
setup/base_import_match/setup.py

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