Skip to content

Commit

Permalink
[MIG][v10] mail_digest
Browse files Browse the repository at this point in the history
  • Loading branch information
simahawk committed Jan 12, 2018
1 parent 911a15c commit e8f4e48
Show file tree
Hide file tree
Showing 87 changed files with 2,302 additions and 563 deletions.
11 changes: 10 additions & 1 deletion mail_digest/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The preference tab on user's form will look like:
Behavior
--------

When a partner with digest mode on is notified with a message of type email or an email
When a partner with digest mode on is notified with a message or an email
all the messages are collected inside a `mail.digest` container.

A daily cron and a weekly cron will take care of creating a single email per each digest,
Expand All @@ -42,6 +42,15 @@ Specifically:
NOTE: under the hood the digest notification logic excludes followers to be notified,
since you really want to notify only mail.digest's partner.


Global settings
---------------

By default digest functionality is enabled for every message type ('email', 'comment', 'notification').
You change this with the config param `mail_digest.enabled_message_types`
whereas you can specify message types separated by comma.


Known issues / Roadmap
======================

Expand Down
4 changes: 3 additions & 1 deletion mail_digest/__openerp__.py → mail_digest/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@
{
'name': 'Mail digest',
'summary': """Basic digest mail handling.""",
'version': '9.0.1.0.0',
'version': '10.0.1.0.0',
'license': 'AGPL-3',
'author': 'Camptocamp,Odoo Community Association (OCA)',
'depends': [
'mail',
],
'data': [
'data/ir_cron.xml',
'data/config_param.xml',
'security/ir.model.access.csv',
'security/record_rules.xml',
'views/mail_digest_views.xml',
'views/partner_views.xml',
'views/user_views.xml',
Expand Down
9 changes: 9 additions & 0 deletions mail_digest/data/config_param.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<odoo>
<data noupdate="1">
<record id="mail_digest_enabled_message_types" model="ir.config_parameter">
<field name="key">mail_digest.enabled_message_types</field>
<!-- enabled by default for each message type -->
<field name="value">email,notification,comment</field>
</record>
</data>
</odoo>
31 changes: 26 additions & 5 deletions mail_digest/i18n/am.po
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_digest
#
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-20 02:49+0000\n"
"POT-Creation-Date: 2017-08-01 08:16+0000\n"
"PO-Revision-Date: 2017-06-20 02:49+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n"
"Language: am\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: am\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: mail_digest
Expand All @@ -36,7 +36,7 @@ msgid "Daily"
msgstr ""

#. module: mail_digest
#: code:addons/mail_digest/models/mail_digest.py:112
#: code:addons/mail_digest/models/mail_digest.py:148
#, python-format
msgid "Daily update"
msgstr ""
Expand All @@ -55,6 +55,12 @@ msgstr ""
msgid "Display Name"
msgstr ""

#. module: mail_digest
#: model:ir.ui.view,arch_db:mail_digest.view_users_form_mail
#: model:ir.ui.view,arch_db:mail_digest.view_users_form_simple_modif_mail
msgid "Enable/disable notifications by type"
msgstr ""

#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_partner_notification_conf_enabled
msgid "Enabled"
Expand All @@ -63,6 +69,7 @@ msgstr ""
#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_mail_digest_frequency
#: model:ir.model.fields,field_description:mail_digest.field_res_partner_notify_frequency
#: model:ir.model.fields,field_description:mail_digest.field_res_users_notify_frequency
msgid "Frequency"
msgstr ""

Expand Down Expand Up @@ -130,6 +137,7 @@ msgstr ""

#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_res_partner_notify_conf_ids
#: model:ir.model.fields,field_description:mail_digest.field_res_users_notify_conf_ids
#: model:ir.ui.view,arch_db:mail_digest.notification_tree
msgid "Notifications"
msgstr ""
Expand All @@ -143,11 +151,13 @@ msgstr "ተባባሪ"

#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_res_partner_disabled_notify_subtype_ids
#: model:ir.model.fields,field_description:mail_digest.field_res_users_disabled_notify_subtype_ids
msgid "Partner disabled subtypes"
msgstr ""

#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_res_partner_enabled_notify_subtype_ids
#: model:ir.model.fields,field_description:mail_digest.field_res_users_enabled_notify_subtype_ids
msgid "Partner enabled subtypes"
msgstr ""

Expand All @@ -156,6 +166,11 @@ msgstr ""
msgid "Partner notification configuration"
msgstr ""

#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_mail_digest_template_id
msgid "Qweb mail template"
msgstr ""

#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_mail_digest_state
msgid "Status"
Expand All @@ -167,7 +182,7 @@ msgid "Weekly"
msgstr ""

#. module: mail_digest
#: code:addons/mail_digest/models/mail_digest.py:114
#: code:addons/mail_digest/models/mail_digest.py:150
#, python-format
msgid "Weekly update"
msgstr ""
Expand All @@ -176,3 +191,9 @@ msgstr ""
#: sql_constraint:partner.notification.conf:0
msgid "You can have only one configuration per subtype!"
msgstr ""

#. module: mail_digest
#: code:addons/mail_digest/models/mail_digest.py:173
#, python-format
msgid "You must pass a template or set one on the digest record."
msgstr ""
34 changes: 28 additions & 6 deletions mail_digest/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_digest
#
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-20 02:49+0000\n"
"POT-Creation-Date: 2017-08-01 08:16+0000\n"
"PO-Revision-Date: 2017-06-20 02:49+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: ar\n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_mail_digest_create_uid
Expand All @@ -36,7 +37,7 @@ msgid "Daily"
msgstr ""

#. module: mail_digest
#: code:addons/mail_digest/models/mail_digest.py:112
#: code:addons/mail_digest/models/mail_digest.py:148
#, python-format
msgid "Daily update"
msgstr ""
Expand All @@ -55,6 +56,12 @@ msgstr ""
msgid "Display Name"
msgstr "اسم العرض"

#. module: mail_digest
#: model:ir.ui.view,arch_db:mail_digest.view_users_form_mail
#: model:ir.ui.view,arch_db:mail_digest.view_users_form_simple_modif_mail
msgid "Enable/disable notifications by type"
msgstr ""

#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_partner_notification_conf_enabled
msgid "Enabled"
Expand All @@ -63,6 +70,7 @@ msgstr ""
#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_mail_digest_frequency
#: model:ir.model.fields,field_description:mail_digest.field_res_partner_notify_frequency
#: model:ir.model.fields,field_description:mail_digest.field_res_users_notify_frequency
msgid "Frequency"
msgstr ""

Expand Down Expand Up @@ -130,6 +138,7 @@ msgstr ""

#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_res_partner_notify_conf_ids
#: model:ir.model.fields,field_description:mail_digest.field_res_users_notify_conf_ids
#: model:ir.ui.view,arch_db:mail_digest.notification_tree
msgid "Notifications"
msgstr ""
Expand All @@ -143,11 +152,13 @@ msgstr "الشريك"

#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_res_partner_disabled_notify_subtype_ids
#: model:ir.model.fields,field_description:mail_digest.field_res_users_disabled_notify_subtype_ids
msgid "Partner disabled subtypes"
msgstr ""

#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_res_partner_enabled_notify_subtype_ids
#: model:ir.model.fields,field_description:mail_digest.field_res_users_enabled_notify_subtype_ids
msgid "Partner enabled subtypes"
msgstr ""

Expand All @@ -156,6 +167,11 @@ msgstr ""
msgid "Partner notification configuration"
msgstr ""

#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_mail_digest_template_id
msgid "Qweb mail template"
msgstr ""

#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_mail_digest_state
msgid "Status"
Expand All @@ -167,7 +183,7 @@ msgid "Weekly"
msgstr ""

#. module: mail_digest
#: code:addons/mail_digest/models/mail_digest.py:114
#: code:addons/mail_digest/models/mail_digest.py:150
#, python-format
msgid "Weekly update"
msgstr ""
Expand All @@ -176,3 +192,9 @@ msgstr ""
#: sql_constraint:partner.notification.conf:0
msgid "You can have only one configuration per subtype!"
msgstr ""

#. module: mail_digest
#: code:addons/mail_digest/models/mail_digest.py:173
#, python-format
msgid "You must pass a template or set one on the digest record."
msgstr ""
31 changes: 26 additions & 5 deletions mail_digest/i18n/bg.po
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_digest
#
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-20 02:49+0000\n"
"POT-Creation-Date: 2017-08-01 08:16+0000\n"
"PO-Revision-Date: 2017-06-20 02:49+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n"
"Language: bg\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: bg\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: mail_digest
Expand All @@ -36,7 +36,7 @@ msgid "Daily"
msgstr ""

#. module: mail_digest
#: code:addons/mail_digest/models/mail_digest.py:112
#: code:addons/mail_digest/models/mail_digest.py:148
#, python-format
msgid "Daily update"
msgstr ""
Expand All @@ -55,6 +55,12 @@ msgstr ""
msgid "Display Name"
msgstr "Име за Показване"

#. module: mail_digest
#: model:ir.ui.view,arch_db:mail_digest.view_users_form_mail
#: model:ir.ui.view,arch_db:mail_digest.view_users_form_simple_modif_mail
msgid "Enable/disable notifications by type"
msgstr ""

#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_partner_notification_conf_enabled
msgid "Enabled"
Expand All @@ -63,6 +69,7 @@ msgstr ""
#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_mail_digest_frequency
#: model:ir.model.fields,field_description:mail_digest.field_res_partner_notify_frequency
#: model:ir.model.fields,field_description:mail_digest.field_res_users_notify_frequency
msgid "Frequency"
msgstr ""

Expand Down Expand Up @@ -130,6 +137,7 @@ msgstr ""

#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_res_partner_notify_conf_ids
#: model:ir.model.fields,field_description:mail_digest.field_res_users_notify_conf_ids
#: model:ir.ui.view,arch_db:mail_digest.notification_tree
msgid "Notifications"
msgstr ""
Expand All @@ -143,11 +151,13 @@ msgstr "Партньор"

#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_res_partner_disabled_notify_subtype_ids
#: model:ir.model.fields,field_description:mail_digest.field_res_users_disabled_notify_subtype_ids
msgid "Partner disabled subtypes"
msgstr ""

#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_res_partner_enabled_notify_subtype_ids
#: model:ir.model.fields,field_description:mail_digest.field_res_users_enabled_notify_subtype_ids
msgid "Partner enabled subtypes"
msgstr ""

Expand All @@ -156,6 +166,11 @@ msgstr ""
msgid "Partner notification configuration"
msgstr ""

#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_mail_digest_template_id
msgid "Qweb mail template"
msgstr ""

#. module: mail_digest
#: model:ir.model.fields,field_description:mail_digest.field_mail_digest_state
msgid "Status"
Expand All @@ -167,7 +182,7 @@ msgid "Weekly"
msgstr ""

#. module: mail_digest
#: code:addons/mail_digest/models/mail_digest.py:114
#: code:addons/mail_digest/models/mail_digest.py:150
#, python-format
msgid "Weekly update"
msgstr ""
Expand All @@ -176,3 +191,9 @@ msgstr ""
#: sql_constraint:partner.notification.conf:0
msgid "You can have only one configuration per subtype!"
msgstr ""

#. module: mail_digest
#: code:addons/mail_digest/models/mail_digest.py:173
#, python-format
msgid "You must pass a template or set one on the digest record."
msgstr ""
Loading

0 comments on commit e8f4e48

Please sign in to comment.