mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[IMP] update dotfiles [ci skip]
This commit is contained in:
@@ -47,7 +47,7 @@ class Base(models.AbstractModel):
|
||||
# To generate externals IDS.
|
||||
match.export_data(fields)
|
||||
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
|
||||
newdata.append(tuple(row[f] for f in clean_fields))
|
||||
# We will import the patched data to get updates on matches
|
||||
|
||||
@@ -42,7 +42,7 @@ class BaseImportMatch(models.Model):
|
||||
def _compute_name(self):
|
||||
"""Automatic self-descriptive name for the setting records."""
|
||||
for one in self:
|
||||
one.name = u"{}: {}".format(
|
||||
one.name = "{}: {}".format(
|
||||
one.model_id.display_name,
|
||||
" + ".join(one.field_ids.mapped("display_name")),
|
||||
)
|
||||
@@ -163,7 +163,7 @@ class BaseImportMatchField(models.Model):
|
||||
def name_get(self):
|
||||
result = []
|
||||
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=one.field_id.name,
|
||||
cond=one.imported_value,
|
||||
|
||||
Reference in New Issue
Block a user