From 5ad6a4962f58b6f3fff278236844955c4d1604b6 Mon Sep 17 00:00:00 2001 From: Alvaro Date: Thu, 9 Dec 2021 14:20:32 +0100 Subject: [PATCH] [15.0][MIG]mail_attach_existing_attachment: module migration fron 14.0 to 15.0 --- mail_attach_existing_attachment/__manifest__.py | 2 +- .../wizard/mail_compose_message.py | 2 +- .../odoo/addons/mail_attach_existing_attachment | 1 + setup/mail_attach_existing_attachment/setup.py | 6 ++++++ 4 files changed, 9 insertions(+), 2 deletions(-) create mode 120000 setup/mail_attach_existing_attachment/odoo/addons/mail_attach_existing_attachment create mode 100644 setup/mail_attach_existing_attachment/setup.py diff --git a/mail_attach_existing_attachment/__manifest__.py b/mail_attach_existing_attachment/__manifest__.py index 9434f60..223eaee 100644 --- a/mail_attach_existing_attachment/__manifest__.py +++ b/mail_attach_existing_attachment/__manifest__.py @@ -7,7 +7,7 @@ "author": "ACSONE SA/NV, Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/social", "category": "Social Network", - "version": "14.0.1.0.0", + "version": "15.0.1.0.0", "license": "AGPL-3", "depends": ["mail"], "data": ["wizard/mail_compose_message_view.xml"], diff --git a/mail_attach_existing_attachment/wizard/mail_compose_message.py b/mail_attach_existing_attachment/wizard/mail_compose_message.py index 0f5b526..671bb98 100644 --- a/mail_attach_existing_attachment/wizard/mail_compose_message.py +++ b/mail_attach_existing_attachment/wizard/mail_compose_message.py @@ -19,7 +19,7 @@ class MailComposeMessage(models.TransientModel): res["can_attach_attachment"] = True # pragma: no cover return res - can_attach_attachment = fields.Boolean(string="Can Attach Attachment") + can_attach_attachment = fields.Boolean() object_attachment_ids = fields.Many2many( comodel_name="ir.attachment", relation="mail_compose_message_ir_attachments_object_rel", diff --git a/setup/mail_attach_existing_attachment/odoo/addons/mail_attach_existing_attachment b/setup/mail_attach_existing_attachment/odoo/addons/mail_attach_existing_attachment new file mode 120000 index 0000000..d7f3725 --- /dev/null +++ b/setup/mail_attach_existing_attachment/odoo/addons/mail_attach_existing_attachment @@ -0,0 +1 @@ +../../../../mail_attach_existing_attachment \ No newline at end of file diff --git a/setup/mail_attach_existing_attachment/setup.py b/setup/mail_attach_existing_attachment/setup.py new file mode 100644 index 0000000..28c57bb --- /dev/null +++ b/setup/mail_attach_existing_attachment/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)