diff --git a/mail_edit/README.rst b/mail_edit/README.rst new file mode 100644 index 0000000000..17142730fb --- /dev/null +++ b/mail_edit/README.rst @@ -0,0 +1,121 @@ +============ +Message Edit +============ + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:5c752155d8002154d92f54efdbeb6a90644b35a4a94cdf383c1fef7931763e6f + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github + :target: https://github.com/OCA/social/tree/16.0/mail_edit + :alt: OCA/social +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_edit + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module extends the functionality of mail. You can edit message/mail +and move them to any model. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +To configure this module: + +* Activate the 'Move mail message' or 'Edit mail message' permissions for a + user (the admin user has these rights by default) + +Usage +===== + +To use this module, you need to: + +* Go to *Message* *Chatter* in any model, click the Edit (pen) Icon to open up + the 'Edit or Move' wizard. +* To edit, edit the Mail as necessary and click Save. +* To move, select the destination object and click Save. +* To delete a message, click the trash icon, and do the confirmation. + +Known issues / Roadmap +====================== + +* Better live-updating of an edited message in the thread, right now only + 'body' parameter is updated. +* For the body parameter, call processBody to correctly handle emoji. +* Live-update edited message through all threads, using the message bus. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Sunflower IT + +Contributors +~~~~~~~~~~~~ + +* `Sunflower IT `_: + + * Dan Kiplangat + * Tom Blauwendraat + + +* `Therp BV `_: + + * George Daramouskas + * Holger Brunn + +Other credits +~~~~~~~~~~~~~ + +Images +------ + +* PICOL Icon Generator `here `__. + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/social `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mail_edit/__init__.py b/mail_edit/__init__.py new file mode 100644 index 0000000000..4582ed24d5 --- /dev/null +++ b/mail_edit/__init__.py @@ -0,0 +1,4 @@ +# © 2016 Sunflower IT (http://sunflowerweb.nl) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/mail_edit/__manifest__.py b/mail_edit/__manifest__.py new file mode 100644 index 0000000000..5c83c277f7 --- /dev/null +++ b/mail_edit/__manifest__.py @@ -0,0 +1,32 @@ +# © 2016-24 Sunflower IT (http://sunflowerweb.nl) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Message Edit", + "summary": "Edit, Delete or Move messages to any model", + "version": "16.0.1.0.0", + "category": "Social Network", + "website": "https://github.com/OCA/social", + "author": "Sunflower IT, Odoo Community Association (OCA)", + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": [ + "mail", + "web", + ], + "data": [ + "security/mail_edit_security.xml", + "views/compose_message.xml", + ], + "demo": ["demo/data.xml"], + "assets": { + "web.assets_backend": [ + "mail_edit/static/src/components/message/mail_edit.js", + "mail_edit/static/src/js/tour.js", + ], + "web.assets_qweb": [ + "mail_edit/static/src/components/message/mail_edit.xml", + ], + }, +} diff --git a/mail_edit/demo/data.xml b/mail_edit/demo/data.xml new file mode 100644 index 0000000000..e6de613ed0 --- /dev/null +++ b/mail_edit/demo/data.xml @@ -0,0 +1,9 @@ + + + + + + diff --git a/mail_edit/i18n/mail_edit.pot b/mail_edit/i18n/mail_edit.pot new file mode 100644 index 0000000000..dbd4fa434d --- /dev/null +++ b/mail_edit/i18n/mail_edit.pot @@ -0,0 +1,90 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_edit +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: mail_edit +#: help:res.request.link,mail_edit:0 +msgid "Allow to move mails to this model." +msgstr "" + +#. module: mail_edit +#. openerp-web +#: code:addons/mail_edit/static/src/xml/mail_edit.xml:11 +#, python-format +msgid "Delete" +msgstr "" + +#. module: mail_edit +#: field:mail.message,destination_object_id:0 +msgid "Destination object" +msgstr "" + +#. module: mail_edit +#. openerp-web +#: code:addons/mail_edit/static/src/xml/mail_edit.xml:8 +#, python-format +msgid "Edit Mail" +msgstr "" + +#. module: mail_edit +#: model:ir.actions.act_window,name:mail_edit.mail_edit_action +msgid "Edit or Move Message" +msgstr "" + +#. module: mail_edit +#: model:res.groups,name:mail_edit.group_mail_edit_superuser +msgid "Edit or Move anyone's mail messages" +msgstr "" + +#. module: mail_edit +#: model:res.groups,name:mail_edit.group_mail_edit_editor +msgid "Edit own mail messages" +msgstr "" + +#. module: mail_edit +#: field:res.request.link,mail_edit:0 +msgid "Mail move" +msgstr "" + +#. module: mail_edit +#: model:res.groups,comment:mail_edit.group_mail_edit_editor +msgid "Members of this group are able to edit mail messages." +msgstr "" + +#. module: mail_edit +#: model:res.groups,comment:mail_edit.group_mail_edit_mover +msgid "Members of this group are able to move mails." +msgstr "" + +#. module: mail_edit +#: model:res.groups,comment:mail_edit.group_mail_edit_superuser +msgid "Members of this group are able to move or edit mails" +msgstr "" + +#. module: mail_edit +#: model:ir.model,name:mail_edit.model_mail_message +#: view:mail.message:mail_edit.mail_edit_form +msgid "Message" +msgstr "" + +#. module: mail_edit +#: model:res.groups,name:mail_edit.group_mail_edit_mover +msgid "Move own mail messages" +msgstr "" + +#. module: mail_edit +#: help:mail.message,destination_object_id:0 +msgid "Object where the message will be moved to" +msgstr "" + diff --git a/mail_edit/i18n/nl.po b/mail_edit/i18n/nl.po new file mode 100644 index 0000000000..6c74985597 --- /dev/null +++ b/mail_edit/i18n/nl.po @@ -0,0 +1,99 @@ +# Translation of Mail edit module. +# This file contains the translation of the following modules: +# * mail_edit +# +# Translators: +# Tom Blauwendraat , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-19 14:40+0000\n" +"PO-Revision-Date: 2017-08-18 16:51+0000\n" +"Last-Translator: Erwin van der Ploeg \n" +"Language-Team: Dutch (http://www.transifex.com/odoo/odoo-8/language/nl/)\n" +"Language: nl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: mail_edit +#: help:res.request.link,mail_edit:0 +msgid "Allow to move mails to this model." +msgstr "Sta toe om berichten naar dit model te verplaatsen." + +#. module: mail_edit +#. openerp-web +#: code:addons/mail_edit/static/src/xml/mail_edit.xml:11 +#, python-format +msgid "Delete" +msgstr "" + +#. module: mail_edit +#: field:mail.message,destination_object_id:0 +msgid "Destination object" +msgstr "Doelobject" + +#. module: mail_edit +#. openerp-web +#: code:addons/mail_edit/static/src/xml/mail_edit.xml:8 +#, python-format +msgid "Edit Mail" +msgstr "Bericht wijzigen" + +#. module: mail_edit +#: model:ir.actions.act_window,name:mail_edit.mail_edit_action +msgid "Edit or Move Message" +msgstr "Wijzigen of verplaatsen van bericht" + +#. module: mail_edit +#: model:res.groups,name:mail_edit.group_mail_edit_superuser +#, fuzzy +msgid "Edit or Move anyone's mail messages" +msgstr "Wijzigen of verplaatsen van bericht" + +#. module: mail_edit +#: model:res.groups,name:mail_edit.group_mail_edit_editor +#, fuzzy +msgid "Edit own mail messages" +msgstr "Berichten wijzigen" + +#. module: mail_edit +#: field:res.request.link,mail_edit:0 +#, fuzzy +msgid "Mail move" +msgstr "Bericht wijzigen" + +#. module: mail_edit +#: model:res.groups,comment:mail_edit.group_mail_edit_editor +msgid "Members of this group are able to edit mail messages." +msgstr "Leden van deze groep mogen de inhoud van berichten wijzigen." + +#. module: mail_edit +#: model:res.groups,comment:mail_edit.group_mail_edit_mover +msgid "Members of this group are able to move mails." +msgstr "Leden van deze groep mogen berichten verplaatsen." + +#. module: mail_edit +#: model:res.groups,comment:mail_edit.group_mail_edit_superuser +#, fuzzy +msgid "Members of this group are able to move or edit mails" +msgstr "Leden van deze groep mogen berichten verplaatsen." + +#. module: mail_edit +#: model:ir.model,name:mail_edit.model_mail_message +#: view:mail.message:mail_edit.mail_edit_form +msgid "Message" +msgstr "Bericht" + +#. module: mail_edit +#: model:res.groups,name:mail_edit.group_mail_edit_mover +#, fuzzy +msgid "Move own mail messages" +msgstr "Berichten verplaatsen" + +#. module: mail_edit +#: help:mail.message,destination_object_id:0 +msgid "Object where the message will be moved to" +msgstr "Object waar het bericht naartoe verplaatst zal worden" diff --git a/mail_edit/models/__init__.py b/mail_edit/models/__init__.py new file mode 100644 index 0000000000..6f66d745f2 --- /dev/null +++ b/mail_edit/models/__init__.py @@ -0,0 +1,4 @@ +# © 2016 Sunflower IT (http://sunflowerweb.nl) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import compose_message diff --git a/mail_edit/models/compose_message.py b/mail_edit/models/compose_message.py new file mode 100644 index 0000000000..10c4d9f9dd --- /dev/null +++ b/mail_edit/models/compose_message.py @@ -0,0 +1,53 @@ +# © 2016 Sunflower IT (http://sunflowerweb.nl) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import api, fields, models + + +class MailMessage(models.Model): + _inherit = "mail.message" + + @api.model + def _get_model_selection(self): + # Get models that supports messages, exclude transient models + models = self.env["ir.model"].search( + [("is_mail_thread", "=", True), ("transient", "=", False)] + ) + return [(m.model, m.name) for m in models] + + @api.onchange("destination_object_id") + def change_destination_object(self): + """Update some fields for the new message.""" + # pylint: disable=api-one-deprecated + if self.destination_object_id: + self.model = self.destination_object_id._name + self.res_id = self.destination_object_id.id + + model_name = self.env["ir.model"].search([("model", "=", self.model)]).name + display_name = self.destination_object_id.display_name + if model_name: + display_name = "%s %s" % (model_name, display_name) + + self.record_name = display_name + else: + self.model = self.res_id = self.record_name = False + + destination_object_id = fields.Reference( + _get_model_selection, + "Destination object", + help="Object where the message will be moved to", + ) + + @api.model + def _message_read_dict_postprocess(self, messages, message_tree): + res = super(MailMessage, self)._message_read_dict_postprocess( + messages, message_tree + ) + for message_dict in messages: + # Check if current user is a superuser + if self.env.user.has_group("mail_edit.group_mail_edit_superuser"): + message_dict["is_superuser"] = True + message_dict["is_author"] = ( + self.env.user.partner_id.id == message_dict["author_id"][0] + ) + return res diff --git a/mail_edit/readme/CONFIGURE.rst b/mail_edit/readme/CONFIGURE.rst new file mode 100644 index 0000000000..a664e0516f --- /dev/null +++ b/mail_edit/readme/CONFIGURE.rst @@ -0,0 +1,4 @@ +To configure this module: + +* Activate the 'Move mail message' or 'Edit mail message' permissions for a + user (the admin user has these rights by default) diff --git a/mail_edit/readme/CONTRIBUTORS.rst b/mail_edit/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000000..ea8186a993 --- /dev/null +++ b/mail_edit/readme/CONTRIBUTORS.rst @@ -0,0 +1,10 @@ +* `Sunflower IT `_: + + * Dan Kiplangat + * Tom Blauwendraat + + +* `Therp BV `_: + + * George Daramouskas + * Holger Brunn diff --git a/mail_edit/readme/CREDITS.rst b/mail_edit/readme/CREDITS.rst new file mode 100644 index 0000000000..c8674a675b --- /dev/null +++ b/mail_edit/readme/CREDITS.rst @@ -0,0 +1,4 @@ +Images +------ + +* PICOL Icon Generator `here `__. diff --git a/mail_edit/readme/DESCRIPTION.rst b/mail_edit/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..e2e89d74cf --- /dev/null +++ b/mail_edit/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module extends the functionality of mail. You can edit message/mail +and move them to any model. diff --git a/mail_edit/readme/ROADMAP.rst b/mail_edit/readme/ROADMAP.rst new file mode 100644 index 0000000000..e6728ef41e --- /dev/null +++ b/mail_edit/readme/ROADMAP.rst @@ -0,0 +1,4 @@ +* Better live-updating of an edited message in the thread, right now only + 'body' parameter is updated. +* For the body parameter, call processBody to correctly handle emoji. +* Live-update edited message through all threads, using the message bus. diff --git a/mail_edit/readme/USAGE.rst b/mail_edit/readme/USAGE.rst new file mode 100644 index 0000000000..51f140d0ac --- /dev/null +++ b/mail_edit/readme/USAGE.rst @@ -0,0 +1,7 @@ +To use this module, you need to: + +* Go to *Message* *Chatter* in any model, click the Edit (pen) Icon to open up + the 'Edit or Move' wizard. +* To edit, edit the Mail as necessary and click Save. +* To move, select the destination object and click Save. +* To delete a message, click the trash icon, and do the confirmation. diff --git a/mail_edit/security/mail_edit_security.xml b/mail_edit/security/mail_edit_security.xml new file mode 100644 index 0000000000..7d2fb43aad --- /dev/null +++ b/mail_edit/security/mail_edit_security.xml @@ -0,0 +1,27 @@ + + + + Edit own mail messages + Members of this group are able to edit mail messages. + + + + + + Move own mail messages + Members of this group are able to move mails. + + + + + + Edit or Move anyone's mail messages + Members of this group are able to move or edit mails + + + + diff --git a/mail_edit/static/description/icon.png b/mail_edit/static/description/icon.png new file mode 100644 index 0000000000..b0ff417aad Binary files /dev/null and b/mail_edit/static/description/icon.png differ diff --git a/mail_edit/static/description/index.html b/mail_edit/static/description/index.html new file mode 100644 index 0000000000..e4bfbef5f0 --- /dev/null +++ b/mail_edit/static/description/index.html @@ -0,0 +1,481 @@ + + + + + + +Message Edit + + + +
+

Message Edit

+ + +

Beta License: AGPL-3 OCA/social Translate me on Weblate Try me on Runboat

+

This module extends the functionality of mail. You can edit message/mail +and move them to any model.

+

Table of contents

+ +
+

Configuration

+

To configure this module:

+
    +
  • Activate the ‘Move mail message’ or ‘Edit mail message’ permissions for a +user (the admin user has these rights by default)
  • +
+
+
+

Usage

+

To use this module, you need to:

+
    +
  • Go to Message Chatter in any model, click the Edit (pen) Icon to open up +the ‘Edit or Move’ wizard.
  • +
  • To edit, edit the Mail as necessary and click Save.
  • +
  • To move, select the destination object and click Save.
  • +
  • To delete a message, click the trash icon, and do the confirmation.
  • +
+
+
+

Known issues / Roadmap

+
    +
  • Better live-updating of an edited message in the thread, right now only +‘body’ parameter is updated.
  • +
  • For the body parameter, call processBody to correctly handle emoji.
  • +
  • Live-update edited message through all threads, using the message bus.
  • +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Sunflower IT
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+
+

Images

+
    +
  • PICOL Icon Generator here.
  • +
+
+
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/social project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/mail_edit/static/src/components/message/mail_edit.js b/mail_edit/static/src/components/message/mail_edit.js new file mode 100644 index 0000000000..6cba86ea42 --- /dev/null +++ b/mail_edit/static/src/components/message/mail_edit.js @@ -0,0 +1,71 @@ +/* Copyright 2023 Therp BV + * License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + */ +odoo.define("mail_edit/static/src/components/message/mail_edit.js", function (require) { + "use strict"; + + const components = { + Message: require("mail/static/src/components/message/message.js"), + }; + const {patch} = require("web.utils"); + var Dialog = require("web.Dialog"); + var core = require("web.core"); + var _t = core._t; + + patch(components.Message, "mail_edit.main", { + async _onClickMessageEdit(ev) { + ev.stopPropagation(); + var self = this; + const action = await this.rpc({ + route: "/web/action/load", + params: {action_id: "mail_edit.mail_edit_action"}, + }); + action.res_id = this.message.id; + await new Promise((resolve) => + this.env.bus.trigger("do-action", { + action: action, + options: { + on_close: async () => { + resolve(); + + const [data] = await self.env.services.rpc( + { + model: "mail.message", + method: "message_format", + args: [self.message.id], + }, + {shadow: true} + ); + let shouldDelete = false; + if (data) { + self.message.update( + self.env.models["mail.message"].convertData(data) + ); + } else { + shouldDelete = true; + } + if (shouldDelete) { + self.message.delete(); + } + }, + }, + }) + ); + }, + async _onClickMessageDelete(ev) { + ev.stopPropagation(); + var self = this; + const promptText = _t("Do you really want to delete this message?"); + Dialog.confirm(this, promptText, { + confirm_callback: async function () { + await self.env.services.rpc({ + model: "mail.message", + method: "unlink", + args: [self.message.id], + }); + await self.message.delete(); + }, + }); + }, + }); +}); diff --git a/mail_edit/static/src/components/message/mail_edit.xml b/mail_edit/static/src/components/message/mail_edit.xml new file mode 100644 index 0000000000..781b2e278d --- /dev/null +++ b/mail_edit/static/src/components/message/mail_edit.xml @@ -0,0 +1,29 @@ + + diff --git a/mail_edit/static/src/js/tour.js b/mail_edit/static/src/js/tour.js new file mode 100644 index 0000000000..9f84f0fcd7 --- /dev/null +++ b/mail_edit/static/src/js/tour.js @@ -0,0 +1,65 @@ +odoo.define("mail_edit.tour", function (require) { + "use strict"; + + var core = require("web.core"); + var tour = require("web_tour.tour"); + + var _t = core._t; + + tour.register( + "mail_edit_tour", + { + url: "/web", + }, + [ + tour.stepUtils.showAppsMenuItem(), + { + trigger: '.o_app[data-menu-xmlid="mail.menu_root_discuss"]', + content: _t("Open Apps -> Discuss menu"), + position: "right", + edition: "community", + }, + { + trigger: + '.o_DiscussSidebar_groupHeaderItemAdd[title="Add or join a channel"]', + content: _t("Channels -> Add button"), + position: "bottom", + }, + { + trigger: ".o_DiscussSidebar_itemNew", + content: _t("Add a new Channel"), + position: "right", + run: function (actions) { + actions.text("Mail-Edit Channel", this.$anchor.find("input")); + }, + }, + { + trigger: ".o_Message_Edit:first", + content: _t("Click the Edit Icon on the first message"), + position: "bottom", + }, + { + trigger: "input[name=subject]", + content: _t("Edit Mail Subject"), + run: "text New Subject", + }, + { + trigger: "button span:contains(Save)", + extra_trigger: ".modal-footer", + content: _t("Save Changes"), + run: "click", + }, + { + trigger: ".o_Message_Delete:first", + content: _t("Click the Delete Icon on the first message"), + position: "bottom", + }, + { + trigger: "button span:contains(Ok)", + extra_trigger: ".modal-footer", + content: _t("Confirm Deletion"), + run: "click", + }, + ] + ); +}); diff --git a/mail_edit/tests/__init__.py b/mail_edit/tests/__init__.py new file mode 100644 index 0000000000..687e04cafe --- /dev/null +++ b/mail_edit/tests/__init__.py @@ -0,0 +1,4 @@ +# © 2016 Sunflower IT (http://sunflowerweb.nl) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import test_ui diff --git a/mail_edit/tests/test_ui.py b/mail_edit/tests/test_ui.py new file mode 100644 index 0000000000..c9caf5e0fb --- /dev/null +++ b/mail_edit/tests/test_ui.py @@ -0,0 +1,9 @@ +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl) + +import odoo.tests + + +@odoo.tests.tagged("post_install", "-at_install") +class TestMailEdit(odoo.tests.HttpCase): + def test_tour(self): + self.start_tour("/web", "mail_edit_tour", login="demo") diff --git a/mail_edit/views/compose_message.xml b/mail_edit/views/compose_message.xml new file mode 100644 index 0000000000..fc1ee58fd6 --- /dev/null +++ b/mail_edit/views/compose_message.xml @@ -0,0 +1,53 @@ + + + + + Edit Email Form + mail.message + 50 + +
+ + + + + + + + + + + + + + + + +
+
+
+
+
+
+ + + Edit or Move Message + mail.message + ir.actions.act_window + + form + new + + +
diff --git a/setup/mail_edit/odoo/addons/mail_edit b/setup/mail_edit/odoo/addons/mail_edit new file mode 120000 index 0000000000..90464b1db3 --- /dev/null +++ b/setup/mail_edit/odoo/addons/mail_edit @@ -0,0 +1 @@ +../../../../mail_edit \ No newline at end of file diff --git a/setup/mail_edit/setup.py b/setup/mail_edit/setup.py new file mode 100644 index 0000000000..28c57bb640 --- /dev/null +++ b/setup/mail_edit/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)