Skip to content
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

[16.0][MIG] mail_edit #1328

Closed
wants to merge 10 commits into from
Closed
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
121 changes: 121 additions & 0 deletions mail_edit/README.rst
Original file line number Diff line number Diff line change
@@ -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 <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 <[email protected]>
* Tom Blauwendraat <[email protected]>


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

* George Daramouskas <[email protected]>
* Holger Brunn <[email protected]>

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
32 changes: 32 additions & 0 deletions mail_edit/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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",
],
},
}
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>
90 changes: 90 additions & 0 deletions mail_edit/i18n/mail_edit.pot
Original file line number Diff line number Diff line change
@@ -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 ""

99 changes: 99 additions & 0 deletions mail_edit/i18n/nl.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# Translation of Mail edit module.
# This file contains the translation of the following modules:
# * mail_edit
#
# Translators:
# Tom Blauwendraat <[email protected]>, 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 <[email protected]>\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"
4 changes: 4 additions & 0 deletions mail_edit/models/__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 compose_message
Loading
Loading