Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 125 additions & 0 deletions mail_edit/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

============
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/license-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.
Copy link
Copy Markdown

@KKamaa KKamaa Apr 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NL66278 another thing I noticed while testing, it seems default v16.0 has Edit and Delete if you check this line and image below:

Feature:

image

Buttons:

Image

maybe we can use the above?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed this.

* 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 <https://github.com/OCA/social/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 <https://github.com/OCA/social/issues/new?body=module:%20mail_edit%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
~~~~~~~

* Sunflower IT

Contributors
~~~~~~~~~~~~

* `Sunflower IT <https://www.sunflowerweb.nl>`_:

* Dan Kiplangat <dan@sunflowerweb.nl>
* Tom Blauwendraat <tom@sunflowerweb.nl>


* `Therp BV <https://www.therp.nl>`_:

* George Daramouskas <gdaramouskas@therp.nl>
* Holger Brunn <hbrunn@therp.nl>

Other credits
~~~~~~~~~~~~~

Images
------

* PICOL Icon Generator `here <http://picol.org/picol_icon_generator>`__.

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 <https://github.com/OCA/social/tree/16.0/mail_edit>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions mail_edit/__init__.py
Original file line number Diff line number Diff line change
@@ -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
36 changes: 36 additions & 0 deletions mail_edit/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# © 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",
"web_tour",
"contacts",
],
"data": [
"security/mail_edit_security.xml",
"views/compose_message.xml",
],
"demo": ["demo/data.xml"],
"assets": {
"mail.assets_messaging": [
"mail_edit/static/src/components/message/mail_edit.esm.js",
],
"web.assets_tests": [
"mail_edit/static/src/tests/tours/*.esm.js",
],
"web.qunit_suite_tests": [
"mail_edit/static/src/tests/qunit_suite_tests/*.esm.js",
],
},
}
9 changes: 9 additions & 0 deletions mail_edit/demo/data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="base.user_demo" model="res.users">
<field
name="groups_id"
eval="[(4,ref('mail_edit.group_mail_edit_superuser'))]"
/>
</record>
</odoo>
123 changes: 123 additions & 0 deletions mail_edit/i18n/mail_edit.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_edit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-04-23 11:52+0000\n"
"PO-Revision-Date: 2026-04-23 11:52+0000\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
#. odoo-javascript
#: code:addons/mail_edit/static/src/components/message/mail_edit.esm.js:0
#, python-format
msgid "Change 'Destination Object' in the wizard, then save."
msgstr ""

#. module: mail_edit
#: model:ir.model.fields,field_description:mail_edit.field_mail_mail__destination_object_id
#: model:ir.model.fields,field_description:mail_edit.field_mail_message__destination_object_id
msgid "Destination object"
msgstr ""

#. module: mail_edit
#: model_terms:ir.ui.view,arch_db:mail_edit.mail_edit_form
msgid "Discard"
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
#: 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
#: model_terms:ir.ui.view,arch_db:mail_edit.mail_edit_form
msgid "Message"
msgstr ""

#. module: mail_edit
#. odoo-javascript
#: code:addons/mail_edit/static/src/components/message/mail_edit.esm.js:0
#, python-format
msgid "Message edited"
msgstr ""

#. module: mail_edit
#. odoo-javascript
#: code:addons/mail_edit/static/src/components/message/mail_edit.esm.js:0
#, python-format
msgid "Message edited successfully."
msgstr ""

#. module: mail_edit
#. odoo-javascript
#: code:addons/mail_edit/static/src/components/message/mail_edit.esm.js:0
#, python-format
msgid "Message moved"
msgstr ""

#. module: mail_edit
#. odoo-javascript
#: code:addons/mail_edit/static/src/components/message/mail_edit.esm.js:0
#, python-format
msgid "Message moved successfully, refresh to see changes."
msgstr ""

#. module: mail_edit
#. odoo-javascript
#: code:addons/mail_edit/static/src/components/message/mail_edit.esm.js:0
#: code:addons/mail_edit/static/src/components/message/mail_edit.esm.js:0
#: code:addons/mail_edit/static/src/tests/qunit_suite_tests/mail_edit_tests.esm.js:0
#, python-format
msgid "Move message"
msgstr ""

#. module: mail_edit
#: model:res.groups,name:mail_edit.group_mail_edit_mover
msgid "Move own mail messages"
msgstr ""

#. module: mail_edit
#: model:ir.model.fields,help:mail_edit.field_mail_mail__destination_object_id
#: model:ir.model.fields,help:mail_edit.field_mail_message__destination_object_id
msgid "Object where the message will be moved to"
msgstr ""

#. module: mail_edit
#: model_terms:ir.ui.view,arch_db:mail_edit.mail_edit_form
msgid "Save"
msgstr ""
Loading
Loading