-
-
Notifications
You must be signed in to change notification settings - Fork 712
[MIG][16.0] mig mail_edit #1854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
NL66278
wants to merge
12
commits into
OCA:16.0
Choose a base branch
from
Therp:16.0-mig-mail_edit
base: 16.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
ad40060
[8.0][ADD]mail_edit
Kiplangatdan 9a591a0
[IMP] Forbid other users from deleting messages, add a delete function.
5e09c14
[RFR] cleanup
3f27984
Attribution
df55ff0
[ADD]superuser - can edit or move anyones mails
Kiplangatdan 8741a4d
[UPD] Update mail_edit.pot
oca-travis 943660e
[FIX] pre-commit
0c099d3
[MIG][14.0] mail_edit
ec27113
[IMP] mail_edit: pre-commit stuff
ntsirintanis 6423a85
[MIG] mail_edit: Migration to 16.0
ntsirintanis a1d8ce8
[FIX] mail_edit js & tests
KKamaa c3c28b8
[i18n] mail_edit: solve po(t) format errors and update pot and dutch …
NL66278 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. | ||
| * 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. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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", | ||
| ], | ||
| }, | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 "" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
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:
Buttons:
maybe we can use the above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed this.