mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[FIX] rma: fix for default_res_id as it is deprecated
This commit is contained in:
committed by
Víctor Martínez
parent
cc4187c218
commit
0f45ac2821
@@ -580,7 +580,7 @@ class Rma(models.Model):
|
||||
ctx = {
|
||||
"default_model": "rma",
|
||||
"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_template_id": template and template.id or False,
|
||||
"default_composition_mode": "comment",
|
||||
|
||||
Reference in New Issue
Block a user