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

[10.0][MIG] migrate module mail_forward #256

Merged
merged 2 commits into from
Jul 9, 2018
Merged
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
101 changes: 101 additions & 0 deletions mail_forward/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

===============
Message forward
===============

This module was written to extend the functionality of mails to support
forwarding them to another contact or database object.

* **To another object of the database:** All its followers are notified
according to their settings.

* **To other contacts:** They recieve the forwarded message according to the
usual notification rules of Odoo.

Configuration
=============

When installed, this module allows forwarding to a limited selection of
database models, that will get automatically updated when you install other
modules.

This list can be customized by a user that has *Technical Features* permission.
To do it:

* Go to *Settings > Technical > Database Structure > Referenceable Models*.

* Any model there with *Mail forward target* enabled will appear in the list of
models that can get forwarded messages.

* If you want to *remove* a model from the list, it's usually better to just
*disable* its check box instead of deleting it, because that record might
be used by other modules.

Usage
=====

To use this module, you need to:

* Go to any view that has a message thread.
* Press *Forward* (the button with a curved arrow pointing to the right).
* Modify the subject if you wish.
* If you want to forward the message to an *object*, choose it from the
selector.
* If you want to forward the message to some partner(s), add them in the
selector.
* Modify the message if you want.
* Add attachments if you want.
* If the message contains attachments, you can turn on the *Move attachments*
option, and those will get attached to the new object.

You will need to install the *document* module and have at least *User*
permissions for *Knowledge* to see the effect.

.. info::
Technical note: Internally, forwarded messages are modified copies of
original ones, but attachments are references to the exact originals to
avoid duplicating disk space. Keep that in mind when managing permissions.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/205/8.0

For further information, please visit:

* https://www.odoo.com/forum/help-1

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 smashing it by providing a detailed and welcomed feedback.


Credits
=======

Contributors
------------

* Jairo Llopis <jairo.llopis@tecnativa.com>
* Emanuel Cino <ecino@compassion.ch>

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

This module is maintained by the OCA.

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.

To contribute to this module, please visit http://odoo-community.org.
5 changes: 5 additions & 0 deletions mail_forward/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# © 2014-2015 Grupo ESOC <www.grupoesoc.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
27 changes: 27 additions & 0 deletions mail_forward/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# © 2014-2015 Grupo ESOC <www.grupoesoc.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Message Forward",
"summary": "Add option to forward messages",
"version": "10.0.1.0.0",
"category": "Social Network",
"website": "https://github.com/OCA/social",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": [
"mail",
"web",
],
"data": [
"views/assets.xml",
"views/compose_message.xml",
"views/res_request_link.xml",
],
"qweb": [
"static/src/xml/mail_forward.xml",
],
}
168 changes: 168 additions & 0 deletions mail_forward/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_forward
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-11-02 09:15+0000\n"
"PO-Revision-Date: 2015-11-02 10:19+0100\n"
"Last-Translator: Jairo Llopis <j.llopis@grupoesoc.es>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
"Language: es\n"
"X-Generator: Poedit 1.8.5\n"

#. module: mail_forward
#. openerp-web
#: code:addons/mail_forward/static/src/js/mail_forward.js:25
#, python-format
msgid "(No subject)"
msgstr "(Sin asunto)"

#. module: mail_forward
#: help:res.request.link,mail_forward_target:0
msgid "Allow to forward mails to this model."
msgstr "Permitir reenviar correos a este modelo."

#. module: mail_forward
#: help:mail_forward.compose_message,move_attachments:0
msgid "Attachments will be assigned to the chosen destination object and you will be able to pick them from its 'Attachments' button, but they will not be there for the current object if any. In any case you can always open it from the message itself."
msgstr "Los adjuntos se asignarán al objeto de destino escogido y podrá escogerlos desde el botón 'Adjuntos', pero desaparecerán del objeto en el que estén actualmente (si están en alguno). En cualquier caso, siempre podrá abrirlos desde el propio mensaje."

#. module: mail_forward
#. openerp-web
#: code:addons/mail_forward/static/src/js/mail_forward.js:47
#, python-format
msgid "CC: "
msgstr "CC: "

#. module: mail_forward
#: field:mail_forward.compose_message,create_uid:0
msgid "Created by"
msgstr "Creado por"

#. module: mail_forward
#: field:mail_forward.compose_message,create_date:0
msgid "Created on"
msgstr "Creado el"

#. module: mail_forward
#. openerp-web
#: code:addons/mail_forward/static/src/js/mail_forward.js:38
#, python-format
msgid "Date: "
msgstr "Fecha: "

#. module: mail_forward
#: field:mail_forward.compose_message,destination_object_id:0
msgid "Destination object"
msgstr "Objeto de destino"

#. module: mail_forward
#. openerp-web
#: code:addons/mail_forward/static/src/js/mail_forward.js:16
#, python-format
msgid "FWD"
msgstr "RV"

#. module: mail_forward
#. openerp-web
#: code:addons/mail_forward/static/src/xml/mail_forward.xml:10
#, python-format
msgid "Forward"
msgstr "Reenviar"

#. module: mail_forward
#: model:ir.actions.act_window,name:mail_forward.compose_action
msgid "Forward Email"
msgstr "Reenviar correo electrónico"

#. module: mail_forward
#. openerp-web
#: code:addons/mail_forward/static/src/js/mail_forward.js:36
#, python-format
msgid "Forwarded message"
msgstr "Mensaje reenviado"

#. module: mail_forward
#. openerp-web
#: code:addons/mail_forward/static/src/js/mail_forward.js:37
#, python-format
msgid "From: "
msgstr "De: "

#. module: mail_forward
#: field:mail_forward.compose_message,id:0
msgid "ID"
msgstr "ID"

#. module: mail_forward
#: field:mail_forward.compose_message,write_uid:0
msgid "Last Updated by"
msgstr "Última actualización por"

#. module: mail_forward
#: field:mail_forward.compose_message,write_date:0
msgid "Last Updated on"
msgstr "Última actualización el"

#. module: mail_forward
#: field:res.request.link,mail_forward_target:0
msgid "Mail forward target"
msgstr "Objetivo al reenviar"

#. module: mail_forward
#: field:mail_forward.compose_message,move_attachments:0
msgid "Move attachments"
msgstr "Mover adjuntos"

#. module: mail_forward
#: help:mail_forward.compose_message,destination_object_id:0
msgid "Object where the forwarded message will be attached"
msgstr "Objeto al que se añadirá el mensaje reenviado"

#. module: mail_forward
#: field:mail_forward.compose_message,original_wizard_id:0
msgid "Original message compose wizard"
msgstr "Asistente original de composición de mensajes"

#. module: mail_forward
#. openerp-web
#: code:addons/mail_forward/static/src/js/mail_forward.js:41
#, python-format
msgid "Subject: "
msgstr "Asunto: "

#. module: mail_forward
#. openerp-web
#: code:addons/mail_forward/static/src/js/mail_forward.js:44
#, python-format
msgid "To: "
msgstr "Para: "

#. module: mail_forward
#: view:mail_forward.compose_message:mail_forward.compose_form
msgid ""
"{\n"
" 'invisible': [('destination_object_id', '=', False)]\n"
" }"
msgstr ""
"{\n"
" 'invisible': [('destination_object_id', '=', False)]\n"
" }"

#. module: mail_forward
#: view:mail_forward.compose_message:mail_forward.compose_form
msgid ""
"{\n"
" 'required': [('destination_object_id', '=', False)]\n"
" }"
msgstr ""
"{\n"
" 'required': [('destination_object_id', '=', False)]\n"
" }"
5 changes: 5 additions & 0 deletions mail_forward/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# © 2014-2015 Grupo ESOC <www.grupoesoc.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import compose_message, res_request_link
Loading