mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[MIG] base_comment_template: Migration to 17.0
This commit is contained in:
committed by
Maksym Yankin
parent
efb2bbf843
commit
cf39e00f9c
@@ -33,7 +33,7 @@ class BaseCommentTemplatePreview(models.TransientModel):
|
||||
)
|
||||
res = self.env[model.model].search(domain, limit=1)
|
||||
if res:
|
||||
result["resource_ref"] = "%s,%s" % (model.model, res.id)
|
||||
result["resource_ref"] = f"{model.model},{res.id}"
|
||||
return result
|
||||
|
||||
base_comment_template_id = fields.Many2one(
|
||||
|
||||
Reference in New Issue
Block a user