mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[IMP] base_import_match: black, isort, prettier
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
Symbolic link
1
setup/base_import_match/odoo/addons/base_import_match
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../base_import_match
|
||||
6
setup/base_import_match/setup.py
Normal file
6
setup/base_import_match/setup.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['setuptools-odoo'],
|
||||
odoo_addon=True,
|
||||
)
|
||||
Reference in New Issue
Block a user