File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -28,19 +28,19 @@ def check_substate_id_value(self):
28
28
}
29
29
)
30
30
31
- def _track_template (self , tracking ):
32
- res = super ()._track_template (tracking )
33
- first_rec = self [0 ]
34
- changes , tracking_value_ids = tracking [first_rec .id ]
35
- if "substate_id" in changes and first_rec .substate_id .mail_template_id :
31
+ def _track_template (self , changes ):
32
+ res = super ()._track_template (changes )
33
+ track = self [0 ]
34
+ if "substate_id" in changes and track .substate_id .mail_template_id :
36
35
res ["substate_id" ] = (
37
- first_rec .substate_id .mail_template_id ,
36
+ track .substate_id .mail_template_id ,
38
37
{
39
- "auto_delete_message" : True ,
40
- "subtype_id" : self .env ["ir.model.data" ].xmlid_to_res_id (
38
+ "composition_mode" : "comment" ,
39
+ "auto_delete" : True ,
40
+ "subtype_id" : self .env ["ir.model.data" ]._xmlid_to_res_id (
41
41
"mail.mt_note"
42
42
),
43
- "notif_layout " : "mail.mail_notification_light" ,
43
+ "email_layout_xmlid " : "mail.mail_notification_light" ,
44
44
},
45
45
)
46
46
return res
You can’t perform that action at this time.
0 commit comments