[IMP] update dotfiles [ci skip]

This commit is contained in:
oca-git-bot
2022-03-31 17:36:58 +02:00
committed by anjeel.haria
parent e9641c3d1c
commit 883110ad91
2 changed files with 3 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ class Base(models.AbstractModel):
# To generate externals IDS. # To generate externals IDS.
match.export_data(fields) match.export_data(fields)
ext_id = match.get_external_id() ext_id = match.get_external_id()
row["id"] = ext_id[match.id] if match else row.get("id", u"") row["id"] = ext_id[match.id] if match else row.get("id", "")
# Store the modified row, in the same order as fields # Store the modified row, in the same order as fields
newdata.append(tuple(row[f] for f in clean_fields)) newdata.append(tuple(row[f] for f in clean_fields))
# We will import the patched data to get updates on matches # We will import the patched data to get updates on matches

View File

@@ -42,7 +42,7 @@ class BaseImportMatch(models.Model):
def _compute_name(self): def _compute_name(self):
"""Automatic self-descriptive name for the setting records.""" """Automatic self-descriptive name for the setting records."""
for one in self: for one in self:
one.name = u"{}: {}".format( one.name = "{}: {}".format(
one.model_id.display_name, one.model_id.display_name,
" + ".join(one.field_ids.mapped("display_name")), " + ".join(one.field_ids.mapped("display_name")),
) )
@@ -163,7 +163,7 @@ class BaseImportMatchField(models.Model):
def name_get(self): def name_get(self):
result = [] result = []
for one in self: for one in self:
pattern = u"{name} ({cond})" if one.conditional else u"{name}" pattern = "{name} ({cond})" if one.conditional else "{name}"
name = pattern.format( name = pattern.format(
name=one.field_id.name, name=one.field_id.name,
cond=one.imported_value, cond=one.imported_value,