mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-22 17:12:11 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
# 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue