Skip to content

Commit

Permalink
[FIX] mail_gateway: dummy compatibility with mail_attach_existing_att…
Browse files Browse the repository at this point in the history
…achment

TT51108
  • Loading branch information
chienandalu committed Nov 7, 2024
1 parent 34d02e4 commit 1964c44
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mail_gateway/wizards/mail_compose_gateway_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ class MailComposeGatewayMessage(models.TransientModel):
"attachment_id",
"Attachments",
)

# Dummy for compatibility with mail_attach_existing_attachment without the need of
# glue module
object_attachment_ids = fields.Many2many(
comodel_name="ir.attachment",
relation="mail_compose_gateway_message_ir_attachments_object_rel",
column1="wizard_id",
column2="attachment_id",
string="Object Attachments",
)
partner_ids = fields.Many2many(
"res.partner",
"mail_compose_gateway_message_res_partner_rel",
Expand Down

0 comments on commit 1964c44

Please sign in to comment.