oca-technical/odoo-bringout-oca-automation-automation_oca/automation_oca/wizards/mail_compose_message.py
2025-08-29 15:43:03 +02:00

20 lines
612 B
Python

# Copyright 2024 Dixmit
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class MailComposeMessage(models.TransientModel):
_inherit = "mail.compose.message"
automation_record_step_id = fields.Many2one("automation.record.step")
def get_mail_values(self, res_ids):
result = super().get_mail_values(res_ids)
if self.automation_record_step_id:
for res_id in res_ids:
result[res_id][
"automation_record_step_id"
] = self.automation_record_step_id.id
return result