[IMP] base_comment_template: Improved sentences on fields

This commit is contained in:
Carlos Roca
2021-02-09 11:29:46 +01:00
parent aed03521e2
commit c021cae969
9 changed files with 403 additions and 92 deletions

View File

@@ -17,7 +17,9 @@ def migrate(env, version):
)
if properties:
for template in properties.mapped("value_reference"):
template_id = template.value_reference.split(",")[-1]
if not template:
continue
template_id = template.split(",")[-1]
if template_id:
template = env["base.comment.template"].browse(template_id)
part_prop = properties.filtered(lambda p: p.value_reference == template)