Merge PR #438 into 17.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2025-02-11 19:26:56 +00:00

View File

@@ -580,7 +580,7 @@ class Rma(models.Model):
ctx = { ctx = {
"default_model": "rma", "default_model": "rma",
"default_subtype_id": self.env.ref("rma.mt_rma_notification").id, "default_subtype_id": self.env.ref("rma.mt_rma_notification").id,
"default_res_id": self.ids[0], "default_res_ids": self.ids,
"default_use_template": bool(template), "default_use_template": bool(template),
"default_template_id": template and template.id or False, "default_template_id": template and template.id or False,
"default_composition_mode": "comment", "default_composition_mode": "comment",