[15.0][MIG]mail_attach_existing_attachment: module migration fron 14.0 to 15.0

This commit is contained in:
Alvaro 2021-12-09 14:20:32 +01:00
parent e93a0cb5dd
commit 5ad6a4962f
4 changed files with 9 additions and 2 deletions

View File

@ -7,7 +7,7 @@
"author": "ACSONE SA/NV, Tecnativa, Odoo Community Association (OCA)", "author": "ACSONE SA/NV, Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/social", "website": "https://github.com/OCA/social",
"category": "Social Network", "category": "Social Network",
"version": "14.0.1.0.0", "version": "15.0.1.0.0",
"license": "AGPL-3", "license": "AGPL-3",
"depends": ["mail"], "depends": ["mail"],
"data": ["wizard/mail_compose_message_view.xml"], "data": ["wizard/mail_compose_message_view.xml"],

View File

@ -19,7 +19,7 @@ class MailComposeMessage(models.TransientModel):
res["can_attach_attachment"] = True # pragma: no cover res["can_attach_attachment"] = True # pragma: no cover
return res return res
can_attach_attachment = fields.Boolean(string="Can Attach Attachment") can_attach_attachment = fields.Boolean()
object_attachment_ids = fields.Many2many( object_attachment_ids = fields.Many2many(
comodel_name="ir.attachment", comodel_name="ir.attachment",
relation="mail_compose_message_ir_attachments_object_rel", relation="mail_compose_message_ir_attachments_object_rel",

View File

@ -0,0 +1 @@
../../../../mail_attach_existing_attachment

View File

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)