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:
committed by
anjeel.haria
parent
e9641c3d1c
commit
883110ad91
@@ -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