mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] base_comment_template: Improved sentences on fields
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user