[IMP] base_import_match: black, isort, prettier

This commit is contained in:
Jesus Ramoneda
2021-02-25 16:21:44 +01:00
committed by anjeel.haria
parent 80a27085f7
commit 9ed2c852df
2 changed files with 4 additions and 3 deletions

View File

@@ -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,

View File

@@ -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")