From 9f847d9802842dd8eba0105186cd4ff565400ecc Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Fri, 18 Mar 2016 18:03:32 +0100 Subject: [PATCH 01/27] [ADD] Add mail_optional_autofollow module --- mail_optional_autofollow/README.rst | 60 ++++++++++++++++++ mail_optional_autofollow/__init__.py | 4 ++ mail_optional_autofollow/__openerp__.py | 22 +++++++ .../static/description/autofollow.png | Bin 0 -> 15854 bytes .../static/description/icon.png | Bin 0 -> 9455 bytes mail_optional_autofollow/tests/__init__.py | 5 ++ .../tests/test_mail_optional_autofollow.py | 45 +++++++++++++ mail_optional_autofollow/wizard/__init__.py | 4 ++ .../wizard/mail_compose_message.py | 28 ++++++++ .../wizard/mail_compose_message_view.xml | 15 +++++ 10 files changed, 183 insertions(+) create mode 100644 mail_optional_autofollow/README.rst create mode 100644 mail_optional_autofollow/__init__.py create mode 100644 mail_optional_autofollow/__openerp__.py create mode 100644 mail_optional_autofollow/static/description/autofollow.png create mode 100644 mail_optional_autofollow/static/description/icon.png create mode 100644 mail_optional_autofollow/tests/__init__.py create mode 100644 mail_optional_autofollow/tests/test_mail_optional_autofollow.py create mode 100644 mail_optional_autofollow/wizard/__init__.py create mode 100644 mail_optional_autofollow/wizard/mail_compose_message.py create mode 100644 mail_optional_autofollow/wizard/mail_compose_message_view.xml diff --git a/mail_optional_autofollow/README.rst b/mail_optional_autofollow/README.rst new file mode 100644 index 0000000000..3223d74808 --- /dev/null +++ b/mail_optional_autofollow/README.rst @@ -0,0 +1,60 @@ +.. 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 + +======================== +Mail optional autofollow +======================== + +This module adds the possibility to choose if you want to automatically +add new recipients as followers on mail.compose.message. + +Usage +===== + +To use this module, you need to use the autofollow recipients checkbox on mail.compose.message: + +Technically, this field it's initialized to true if there is an +'mail_post_autofollow' key in the current context + +.. figure:: static/description/autofollow.png + :alt: autofollow recipients checkbox + +.. 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 `_. +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 +`here `_. + +Credits +======= + +Contributors +------------ + +* Adrien Peiffer +* Stéphane Bidoul + +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 https://odoo-community.org. \ No newline at end of file diff --git a/mail_optional_autofollow/__init__.py b/mail_optional_autofollow/__init__.py new file mode 100644 index 0000000000..095712720b --- /dev/null +++ b/mail_optional_autofollow/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 ACSONE SA/NV () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from . import wizard diff --git a/mail_optional_autofollow/__openerp__.py b/mail_optional_autofollow/__openerp__.py new file mode 100644 index 0000000000..a34fc6afe2 --- /dev/null +++ b/mail_optional_autofollow/__openerp__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 ACSONE SA/NV () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + 'name': "Mail optional autofollow", + + 'summary': """ + Choose if you want to automatically add new recipients as followers + on mail.compose.message""", + 'author': 'ACSONE SA/NV,' + 'Odoo Community Association (OCA)', + 'website': "http://acsone.eu", + 'category': 'Social Network', + 'version': '8.0.1.0.0', + 'license': 'AGPL-3', + 'depends': [ + 'mail', + ], + 'data': [ + 'wizard/mail_compose_message_view.xml', + ], +} diff --git a/mail_optional_autofollow/static/description/autofollow.png b/mail_optional_autofollow/static/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WzI}s} zK8@+B*=6PBiltMK=0JVIf~?9Y`_y^~8cseC?NPt{06t|tR%Frr{RIdPyE-~{x3|qW z$mZd|p`IQA0Re)4>I{?&=72avN3Z`X?c+!YQ>H_KJ`q{zqD&WJzdoUT5C0+ICm>zJ zDgzY_V68y*3Jmo+2zh`>gp*_t%I6mrjLpr-Nl6*P+8~02eEFheo4y3+96?ak4Jxak zAbf$?^@W9RAo+@h#ROftuC8tvi}n*vPKZeb5L+QrA&IWp_tny~4#p85tRKuH&VFbcm;ZM9cu}EEz#q{~tvA zaP3w%EQ_d!2ux#SbhPu^9x*Hm14Xmc1(+5%A`ZF4M#sU64M(^rZ z`EY7i^P)b*_<8-h`r??rsj16s>m8_lFUHZeEu&M13-2&CH2!lA^8cwd{%>J9asCh0 WW8>BeS&e%aH;N0(2xTE&z5icX8WuVL literal 0 HcmV?d00001 diff --git a/mail_optional_autofollow/static/description/icon.png b/mail_optional_autofollow/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~! zVpnB`o+K7|Al`Q_U;eD$B zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__ zc+blN2UAB0=617@>_u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_ zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I z%aQ?!(GqeQ-Y+b0I(m9pwgi(IIZZzsbMv+9w{PFtd_<_(LA~0H(x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JYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t< z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{} zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 diff --git a/mail_optional_autofollow/tests/__init__.py b/mail_optional_autofollow/tests/__init__.py new file mode 100644 index 0000000000..3667d24bd9 --- /dev/null +++ b/mail_optional_autofollow/tests/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 ACSONE SA/NV () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import test_mail_optional_autofollow diff --git a/mail_optional_autofollow/tests/test_mail_optional_autofollow.py b/mail_optional_autofollow/tests/test_mail_optional_autofollow.py new file mode 100644 index 0000000000..953c1a31a2 --- /dev/null +++ b/mail_optional_autofollow/tests/test_mail_optional_autofollow.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 ACSONE SA/NV () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openerp.tests import common + + +class TestAttachExistingAttachment(common.TransactionCase): + + def setUp(self): + super(TestAttachExistingAttachment, self).setUp() + self.partner_obj = self.env['res.partner'] + self.partner_01 = self.env.ref('base.res_partner_11') + self.partner_02 = self.env.ref('base.res_partner_address_20') + + def test_send_email_attachment(self): + ctx = self.env.context.copy() + ctx.update({ + 'default_model': 'res.partner', + 'default_res_id': self.partner_01.id, + 'default_composition_mode': 'comment', + }) + mail_compose = self.env['mail.compose.message'] + values = mail_compose.with_context(ctx)\ + .onchange_template_id(False, 'comment', 'res.partner', + self.partner_01.id)['value'] + values['partner_ids'] = [(4, self.partner_02.id)] + compose_id = mail_compose.with_context(ctx).create(values) + compose_id.autofollow_recipients = False + compose_id.with_context(ctx).send_mail() + res = self.env["mail.followers"].search( + [('res_model', '=', 'res.partner'), + ('res_id', '=', self.partner_01.id), + ('partner_id', '=', self.partner_02.id)]) + # I check if the recipient isn't a follower + self.assertEqual(len(res.ids), 0) + compose_id = mail_compose.with_context(ctx).create(values) + compose_id.autofollow_recipients = True + compose_id.with_context(ctx).send_mail() + res = self.env["mail.followers"].search( + [('res_model', '=', 'res.partner'), + ('res_id', '=', self.partner_01.id), + ('partner_id', '=', self.partner_02.id)]) + # I check if the recipient is a follower + self.assertEqual(len(res.ids), 1) diff --git a/mail_optional_autofollow/wizard/__init__.py b/mail_optional_autofollow/wizard/__init__.py new file mode 100644 index 0000000000..c82500c9bf --- /dev/null +++ b/mail_optional_autofollow/wizard/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 ACSONE SA/NV () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from . import mail_compose_message diff --git a/mail_optional_autofollow/wizard/mail_compose_message.py b/mail_optional_autofollow/wizard/mail_compose_message.py new file mode 100644 index 0000000000..a36b6b03f6 --- /dev/null +++ b/mail_optional_autofollow/wizard/mail_compose_message.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 ACSONE SA/NV () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openerp import models, fields, api + + +class MailComposeMessage(models.TransientModel): + _inherit = 'mail.compose.message' + + @api.model + def default_get(self, fields_list): + res = super(MailComposeMessage, self).default_get(fields_list) + if self.env.context.get('mail_post_autofollow'): + res['autofollow_recipients'] = True + return res + + autofollow_recipients = fields.Boolean() + + @api.multi + def send_mail(self): + for wizard in self: + if wizard.autofollow_recipients: + wizard = wizard.with_context(mail_post_autofollow=True) + else: + wizard = wizard.with_context(mail_post_autofollow=False) + super(MailComposeMessage, wizard).send_mail() + return {'type': 'ir.actions.act_window_close'} diff --git a/mail_optional_autofollow/wizard/mail_compose_message_view.xml b/mail_optional_autofollow/wizard/mail_compose_message_view.xml new file mode 100644 index 0000000000..0bb7eacbb6 --- /dev/null +++ b/mail_optional_autofollow/wizard/mail_compose_message_view.xml @@ -0,0 +1,15 @@ + + + + + mail.compose.message.form (mail_optional_autofollow) + mail.compose.message + + + + + + + + + \ No newline at end of file From 72734e6e41cb7176b15d1f6e5e2b2e2abd64adef Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Mon, 4 Apr 2016 20:58:03 +0200 Subject: [PATCH 02/27] [CHG][mail_optional_autofollow] some improvements --- mail_optional_autofollow/README.rst | 2 +- .../wizard/mail_compose_message.py | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/mail_optional_autofollow/README.rst b/mail_optional_autofollow/README.rst index 3223d74808..cc74075db5 100644 --- a/mail_optional_autofollow/README.rst +++ b/mail_optional_autofollow/README.rst @@ -14,7 +14,7 @@ Usage To use this module, you need to use the autofollow recipients checkbox on mail.compose.message: -Technically, this field it's initialized to true if there is an +Technically, this field is initialized to true if there is an 'mail_post_autofollow' key in the current context .. figure:: static/description/autofollow.png diff --git a/mail_optional_autofollow/wizard/mail_compose_message.py b/mail_optional_autofollow/wizard/mail_compose_message.py index a36b6b03f6..912a3d9139 100644 --- a/mail_optional_autofollow/wizard/mail_compose_message.py +++ b/mail_optional_autofollow/wizard/mail_compose_message.py @@ -11,18 +11,19 @@ class MailComposeMessage(models.TransientModel): @api.model def default_get(self, fields_list): res = super(MailComposeMessage, self).default_get(fields_list) - if self.env.context.get('mail_post_autofollow'): - res['autofollow_recipients'] = True + res.setdefault( + 'autofollow_recipients', + self.env.context.get('mail_post_autofollow', False)) return res - autofollow_recipients = fields.Boolean() + autofollow_recipients = fields.Boolean( + string='Make recipients followers', + help="""if checked, the additional recipients will be added as\ + followers on the related object""") @api.multi def send_mail(self): for wizard in self: - if wizard.autofollow_recipients: - wizard = wizard.with_context(mail_post_autofollow=True) - else: - wizard = wizard.with_context(mail_post_autofollow=False) - super(MailComposeMessage, wizard).send_mail() + super(MailComposeMessage, wizard.with_context( + mail_post_autofollow=wizard.autofollow_recipients)).send_mail() return {'type': 'ir.actions.act_window_close'} From 10b991f072d3b852d1f438052bae5acf0cd2789b Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Tue, 5 Apr 2016 08:30:29 +0200 Subject: [PATCH 03/27] [IMP][mail_optional_autofollow] Improve readme file --- mail_optional_autofollow/README.rst | 7 +------ mail_optional_autofollow/__openerp__.py | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/mail_optional_autofollow/README.rst b/mail_optional_autofollow/README.rst index cc74075db5..08dd7a7234 100644 --- a/mail_optional_autofollow/README.rst +++ b/mail_optional_autofollow/README.rst @@ -14,7 +14,7 @@ Usage To use this module, you need to use the autofollow recipients checkbox on mail.compose.message: -Technically, this field is initialized to true if there is an +Technically, this field is initialized to true if there is a 'mail_post_autofollow' key in the current context .. figure:: static/description/autofollow.png @@ -24,11 +24,6 @@ Technically, this field is initialized to true if there is an :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 =========== diff --git a/mail_optional_autofollow/__openerp__.py b/mail_optional_autofollow/__openerp__.py index a34fc6afe2..531dab27ad 100644 --- a/mail_optional_autofollow/__openerp__.py +++ b/mail_optional_autofollow/__openerp__.py @@ -3,7 +3,6 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': "Mail optional autofollow", - 'summary': """ Choose if you want to automatically add new recipients as followers on mail.compose.message""", From dd415b3d2b7b348ffc9e581e7cf34daf5894c032 Mon Sep 17 00:00:00 2001 From: "Laurent Mignon (ACSONE)" Date: Wed, 25 May 2016 13:47:32 +0200 Subject: [PATCH 04/27] [MIG] Upgrade version from 8 -> 9 --- mail_optional_autofollow/README.rst | 4 ++-- mail_optional_autofollow/__openerp__.py | 2 +- .../tests/test_mail_optional_autofollow.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mail_optional_autofollow/README.rst b/mail_optional_autofollow/README.rst index 08dd7a7234..7d2cb94607 100644 --- a/mail_optional_autofollow/README.rst +++ b/mail_optional_autofollow/README.rst @@ -22,7 +22,7 @@ Technically, this field is initialized to true if there is a .. 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 + :target: https://runbot.odoo-community.org/runbot/205/9.0 Bug Tracker =========== @@ -52,4 +52,4 @@ 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 https://odoo-community.org. \ No newline at end of file +To contribute to this module, please visit https://odoo-community.org. diff --git a/mail_optional_autofollow/__openerp__.py b/mail_optional_autofollow/__openerp__.py index 531dab27ad..abd3f76b68 100644 --- a/mail_optional_autofollow/__openerp__.py +++ b/mail_optional_autofollow/__openerp__.py @@ -10,7 +10,7 @@ 'Odoo Community Association (OCA)', 'website': "http://acsone.eu", 'category': 'Social Network', - 'version': '8.0.1.0.0', + 'version': '9.0.1.0.0', 'license': 'AGPL-3', 'depends': [ 'mail', diff --git a/mail_optional_autofollow/tests/test_mail_optional_autofollow.py b/mail_optional_autofollow/tests/test_mail_optional_autofollow.py index 953c1a31a2..b583af2a79 100644 --- a/mail_optional_autofollow/tests/test_mail_optional_autofollow.py +++ b/mail_optional_autofollow/tests/test_mail_optional_autofollow.py @@ -10,8 +10,8 @@ class TestAttachExistingAttachment(common.TransactionCase): def setUp(self): super(TestAttachExistingAttachment, self).setUp() self.partner_obj = self.env['res.partner'] - self.partner_01 = self.env.ref('base.res_partner_11') - self.partner_02 = self.env.ref('base.res_partner_address_20') + self.partner_01 = self.env.ref('base.res_partner_10') + self.partner_02 = self.env.ref('base.res_partner_address_17') def test_send_email_attachment(self): ctx = self.env.context.copy() From 767859b051e1a6646eaf298bc4052dbfd8725fe9 Mon Sep 17 00:00:00 2001 From: "Laurent Mignon (ACSONE)" Date: Mon, 6 Jun 2016 14:39:49 +0200 Subject: [PATCH 05/27] [ADD] fr translations --- mail_optional_autofollow/i18n/fr.po | 47 +++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 mail_optional_autofollow/i18n/fr.po diff --git a/mail_optional_autofollow/i18n/fr.po b/mail_optional_autofollow/i18n/fr.po new file mode 100644 index 0000000000..70fe0208ef --- /dev/null +++ b/mail_optional_autofollow/i18n/fr.po @@ -0,0 +1,47 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_optional_autofollow +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0e\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-06 12:25+0000\n" +"PO-Revision-Date: 2016-06-06 12:25+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_optional_autofollow +#: model:ir.ui.view,arch_db:mail_optional_autofollow.email_compose_message_wizard_inherit_form +msgid "\n" +"\n" +" \n" +" \n" +" " +msgstr "\n" +"\n" +" \n" +" \n" +" " + +#. module: mail_optional_autofollow +#: model:ir.model,name:mail_optional_autofollow.model_mail_compose_message +msgid "Email composition wizard" +msgstr "Assistant de composition de courriel" + +#. module: mail_optional_autofollow +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: field:mail.compose.message,autofollow_recipients:0 +msgid "Make recipients followers" +msgstr "Abonner les destinataires" + +#. module: mail_optional_autofollow +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: help:mail.compose.message,autofollow_recipients:0 +msgid "if checked, the additional recipients will be added as followers on the related object" +msgstr "Si coché, les destinataires supplémentaires seront ajoutés comme abonné au file de discussion sur l'objet lié" + From f974f328c47f95cc5461f1ba5a681fabd0b31317 Mon Sep 17 00:00:00 2001 From: Thomas Binsfeld Date: Fri, 19 Aug 2016 09:47:08 +0200 Subject: [PATCH 06/27] [FIX] Argument auto_commit in send_mail --- mail_optional_autofollow/wizard/mail_compose_message.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mail_optional_autofollow/wizard/mail_compose_message.py b/mail_optional_autofollow/wizard/mail_compose_message.py index 912a3d9139..d7e6c3991e 100644 --- a/mail_optional_autofollow/wizard/mail_compose_message.py +++ b/mail_optional_autofollow/wizard/mail_compose_message.py @@ -22,8 +22,9 @@ def default_get(self, fields_list): followers on the related object""") @api.multi - def send_mail(self): + def send_mail(self, auto_commit=False): for wizard in self: super(MailComposeMessage, wizard.with_context( - mail_post_autofollow=wizard.autofollow_recipients)).send_mail() - return {'type': 'ir.actions.act_window_close'} + mail_post_autofollow=wizard.autofollow_recipients)).send_mail( + auto_commit=auto_commit) + return True From 344eb96d51c4eeae7dcb520aa8827213c557e0e2 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Thu, 6 Oct 2016 16:08:38 +0200 Subject: [PATCH 07/27] [MIG] Make modules uninstallable --- mail_optional_autofollow/__openerp__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mail_optional_autofollow/__openerp__.py b/mail_optional_autofollow/__openerp__.py index abd3f76b68..e2f7769a9e 100644 --- a/mail_optional_autofollow/__openerp__.py +++ b/mail_optional_autofollow/__openerp__.py @@ -18,4 +18,5 @@ 'data': [ 'wizard/mail_compose_message_view.xml', ], + 'installable': False, } From eaa38e590ce5357793dd60c8cc67a269b00e867c Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Thu, 6 Oct 2016 16:08:42 +0200 Subject: [PATCH 08/27] [MIG] Rename manifest files --- mail_optional_autofollow/{__openerp__.py => __manifest__.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename mail_optional_autofollow/{__openerp__.py => __manifest__.py} (100%) diff --git a/mail_optional_autofollow/__openerp__.py b/mail_optional_autofollow/__manifest__.py similarity index 100% rename from mail_optional_autofollow/__openerp__.py rename to mail_optional_autofollow/__manifest__.py From 723898a9010c3e29e3c45ce604e63f181b1c1499 Mon Sep 17 00:00:00 2001 From: Damien Bouvy Date: Fri, 14 Oct 2016 19:32:46 +0200 Subject: [PATCH 09/27] [MIG] mail_optionnal_autofollow: Migrated to 10.0 --- mail_optional_autofollow/README.rst | 2 +- mail_optional_autofollow/__manifest__.py | 4 +-- .../wizard/mail_compose_message.py | 2 +- .../wizard/mail_compose_message_view.xml | 26 +++++++++---------- 4 files changed, 16 insertions(+), 18 deletions(-) diff --git a/mail_optional_autofollow/README.rst b/mail_optional_autofollow/README.rst index 7d2cb94607..ceb4531200 100644 --- a/mail_optional_autofollow/README.rst +++ b/mail_optional_autofollow/README.rst @@ -22,7 +22,7 @@ Technically, this field is initialized to true if there is a .. 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/9.0 + :target: https://runbot.odoo-community.org/runbot/205/10.0 Bug Tracker =========== diff --git a/mail_optional_autofollow/__manifest__.py b/mail_optional_autofollow/__manifest__.py index e2f7769a9e..79626aa641 100644 --- a/mail_optional_autofollow/__manifest__.py +++ b/mail_optional_autofollow/__manifest__.py @@ -10,7 +10,7 @@ 'Odoo Community Association (OCA)', 'website': "http://acsone.eu", 'category': 'Social Network', - 'version': '9.0.1.0.0', + 'version': '10.0.1.0.0', 'license': 'AGPL-3', 'depends': [ 'mail', @@ -18,5 +18,5 @@ 'data': [ 'wizard/mail_compose_message_view.xml', ], - 'installable': False, + 'installable': True, } diff --git a/mail_optional_autofollow/wizard/mail_compose_message.py b/mail_optional_autofollow/wizard/mail_compose_message.py index d7e6c3991e..442c1725e5 100644 --- a/mail_optional_autofollow/wizard/mail_compose_message.py +++ b/mail_optional_autofollow/wizard/mail_compose_message.py @@ -2,7 +2,7 @@ # Copyright 2016 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import models, fields, api +from odoo import models, fields, api class MailComposeMessage(models.TransientModel): diff --git a/mail_optional_autofollow/wizard/mail_compose_message_view.xml b/mail_optional_autofollow/wizard/mail_compose_message_view.xml index 0bb7eacbb6..e21a295584 100644 --- a/mail_optional_autofollow/wizard/mail_compose_message_view.xml +++ b/mail_optional_autofollow/wizard/mail_compose_message_view.xml @@ -1,15 +1,13 @@ - - - - mail.compose.message.form (mail_optional_autofollow) - mail.compose.message - - - - - - - - - \ No newline at end of file + + + mail.compose.message.form (mail_optional_autofollow) + mail.compose.message + + + + + + + + \ No newline at end of file From aa7afc72f2bfea3da01d5e183e8637a90049af74 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sun, 17 Apr 2016 09:01:17 -0400 Subject: [PATCH 10/27] OCA Transbot updated translations from Transifex --- mail_optional_autofollow/i18n/ca.po | 35 ++++++++++++++++++++++++ mail_optional_autofollow/i18n/de.po | 35 ++++++++++++++++++++++++ mail_optional_autofollow/i18n/es.po | 35 ++++++++++++++++++++++++ mail_optional_autofollow/i18n/es_CO.po | 35 ++++++++++++++++++++++++ mail_optional_autofollow/i18n/fr.po | 38 +++++++++----------------- mail_optional_autofollow/i18n/hr.po | 36 ++++++++++++++++++++++++ mail_optional_autofollow/i18n/it.po | 38 ++++++++++++++++++++++++++ mail_optional_autofollow/i18n/pt_BR.po | 35 ++++++++++++++++++++++++ mail_optional_autofollow/i18n/sl.po | 36 ++++++++++++++++++++++++ 9 files changed, 298 insertions(+), 25 deletions(-) create mode 100644 mail_optional_autofollow/i18n/ca.po create mode 100644 mail_optional_autofollow/i18n/de.po create mode 100644 mail_optional_autofollow/i18n/es.po create mode 100644 mail_optional_autofollow/i18n/es_CO.po create mode 100644 mail_optional_autofollow/i18n/hr.po create mode 100644 mail_optional_autofollow/i18n/it.po create mode 100644 mail_optional_autofollow/i18n/pt_BR.po create mode 100644 mail_optional_autofollow/i18n/sl.po diff --git a/mail_optional_autofollow/i18n/ca.po b/mail_optional_autofollow/i18n/ca.po new file mode 100644 index 0000000000..d5748082cc --- /dev/null +++ b/mail_optional_autofollow/i18n/ca.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_optional_autofollow +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: social (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-04-14 07:09+0000\n" +"PO-Revision-Date: 2016-04-05 07:05+0000\n" +"Last-Translator: <>\n" +"Language-Team: Catalan (http://www.transifex.com/oca/OCA-social-8-0/language/ca/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ca\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: mail_optional_autofollow +#: model:ir.model,name:mail_optional_autofollow.model_mail_compose_message +msgid "Email composition wizard" +msgstr "Assistent per composició de correus electrònics" + +#. module: mail_optional_autofollow +#: field:mail.compose.message,autofollow_recipients:0 +msgid "Make recipients followers" +msgstr "" + +#. module: mail_optional_autofollow +#: help:mail.compose.message,autofollow_recipients:0 +msgid "" +"if checked, the additional recipients will be added as followers on " +"the related object" +msgstr "" diff --git a/mail_optional_autofollow/i18n/de.po b/mail_optional_autofollow/i18n/de.po new file mode 100644 index 0000000000..c2cc1036f0 --- /dev/null +++ b/mail_optional_autofollow/i18n/de.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_optional_autofollow +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: social (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-04-14 07:09+0000\n" +"PO-Revision-Date: 2016-04-05 07:05+0000\n" +"Last-Translator: <>\n" +"Language-Team: German (http://www.transifex.com/oca/OCA-social-8-0/language/de/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: mail_optional_autofollow +#: model:ir.model,name:mail_optional_autofollow.model_mail_compose_message +msgid "Email composition wizard" +msgstr "Assistent zum Email verfassen" + +#. module: mail_optional_autofollow +#: field:mail.compose.message,autofollow_recipients:0 +msgid "Make recipients followers" +msgstr "" + +#. module: mail_optional_autofollow +#: help:mail.compose.message,autofollow_recipients:0 +msgid "" +"if checked, the additional recipients will be added as followers on " +"the related object" +msgstr "" diff --git a/mail_optional_autofollow/i18n/es.po b/mail_optional_autofollow/i18n/es.po new file mode 100644 index 0000000000..dc04d6ad1e --- /dev/null +++ b/mail_optional_autofollow/i18n/es.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_optional_autofollow +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: social (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-04-14 07:09+0000\n" +"PO-Revision-Date: 2016-04-05 07:05+0000\n" +"Last-Translator: <>\n" +"Language-Team: Spanish (http://www.transifex.com/oca/OCA-social-8-0/language/es/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: mail_optional_autofollow +#: model:ir.model,name:mail_optional_autofollow.model_mail_compose_message +msgid "Email composition wizard" +msgstr "Asistente composición Correo Electrónico" + +#. module: mail_optional_autofollow +#: field:mail.compose.message,autofollow_recipients:0 +msgid "Make recipients followers" +msgstr "" + +#. module: mail_optional_autofollow +#: help:mail.compose.message,autofollow_recipients:0 +msgid "" +"if checked, the additional recipients will be added as followers on " +"the related object" +msgstr "" diff --git a/mail_optional_autofollow/i18n/es_CO.po b/mail_optional_autofollow/i18n/es_CO.po new file mode 100644 index 0000000000..0659cee11a --- /dev/null +++ b/mail_optional_autofollow/i18n/es_CO.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_optional_autofollow +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: social (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-04-14 07:09+0000\n" +"PO-Revision-Date: 2016-04-05 07:05+0000\n" +"Last-Translator: <>\n" +"Language-Team: Spanish (Colombia) (http://www.transifex.com/oca/OCA-social-8-0/language/es_CO/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es_CO\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: mail_optional_autofollow +#: model:ir.model,name:mail_optional_autofollow.model_mail_compose_message +msgid "Email composition wizard" +msgstr "Asistente de redacción de E-mail" + +#. module: mail_optional_autofollow +#: field:mail.compose.message,autofollow_recipients:0 +msgid "Make recipients followers" +msgstr "" + +#. module: mail_optional_autofollow +#: help:mail.compose.message,autofollow_recipients:0 +msgid "" +"if checked, the additional recipients will be added as followers on " +"the related object" +msgstr "" diff --git a/mail_optional_autofollow/i18n/fr.po b/mail_optional_autofollow/i18n/fr.po index 70fe0208ef..b30a8a4a15 100644 --- a/mail_optional_autofollow/i18n/fr.po +++ b/mail_optional_autofollow/i18n/fr.po @@ -1,32 +1,21 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * mail_optional_autofollow -# +# * mail_optional_autofollow +# +# Translators: msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0e\n" +"Project-Id-Version: social (9.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-06-06 12:25+0000\n" -"PO-Revision-Date: 2016-06-06 12:25+0000\n" -"Last-Translator: <>\n" -"Language-Team: \n" +"POT-Creation-Date: 2016-06-12 02:44+0000\n" +"PO-Revision-Date: 2016-06-11 22:15+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: French (http://www.transifex.com/oca/OCA-social-9-0/language/fr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Plural-Forms: \n" - -#. module: mail_optional_autofollow -#: model:ir.ui.view,arch_db:mail_optional_autofollow.email_compose_message_wizard_inherit_form -msgid "\n" -"\n" -" \n" -" \n" -" " -msgstr "\n" -"\n" -" \n" -" \n" -" " +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: mail_optional_autofollow #: model:ir.model,name:mail_optional_autofollow.model_mail_compose_message @@ -35,13 +24,12 @@ msgstr "Assistant de composition de courriel" #. module: mail_optional_autofollow #: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients -#: field:mail.compose.message,autofollow_recipients:0 msgid "Make recipients followers" msgstr "Abonner les destinataires" #. module: mail_optional_autofollow #: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients -#: help:mail.compose.message,autofollow_recipients:0 -msgid "if checked, the additional recipients will be added as followers on the related object" +msgid "" +"if checked, the additional recipients will be added as followers on " +"the related object" msgstr "Si coché, les destinataires supplémentaires seront ajoutés comme abonné au file de discussion sur l'objet lié" - diff --git a/mail_optional_autofollow/i18n/hr.po b/mail_optional_autofollow/i18n/hr.po new file mode 100644 index 0000000000..2c00876283 --- /dev/null +++ b/mail_optional_autofollow/i18n/hr.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_optional_autofollow +# +# Translators: +# Bole , 2016 +msgid "" +msgstr "" +"Project-Id-Version: social (9.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-13 02:44+0000\n" +"PO-Revision-Date: 2016-06-14 11:31+0000\n" +"Last-Translator: Bole \n" +"Language-Team: Croatian (http://www.transifex.com/oca/OCA-social-9-0/language/hr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hr\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: mail_optional_autofollow +#: model:ir.model,name:mail_optional_autofollow.model_mail_compose_message +msgid "Email composition wizard" +msgstr "Čarobnjak za sastavljanje maila" + +#. module: mail_optional_autofollow +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +msgid "Make recipients followers" +msgstr "Učini primatelje i pratiteljima" + +#. module: mail_optional_autofollow +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +msgid "" +"if checked, the additional recipients will be added as followers on " +"the related object" +msgstr "Ukoliko je označeno, dodatni primatelji će biti dodani i kao pratitelji na povezanom objektu" diff --git a/mail_optional_autofollow/i18n/it.po b/mail_optional_autofollow/i18n/it.po new file mode 100644 index 0000000000..6523691d66 --- /dev/null +++ b/mail_optional_autofollow/i18n/it.po @@ -0,0 +1,38 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_optional_autofollow +# +# Translators: +# Marius Marolla , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 01:02+0000\n" +"PO-Revision-Date: 2017-05-17 01:02+0000\n" +"Last-Translator: Marius Marolla , 2017\n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: it\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: mail_optional_autofollow +#: model:ir.model,name:mail_optional_autofollow.model_mail_compose_message +msgid "Email composition wizard" +msgstr "Wizard Creazione Email" + +#. module: mail_optional_autofollow +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +msgid "Make recipients followers" +msgstr "Destinatari in Follower" + +#. module: mail_optional_autofollow +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +msgid "" +"if checked, the additional recipients will be added as followers on " +"the related object" +msgstr "" +"Se l'opzione è spuntata, i destinatari verranno aggiunti ai follower di " +"questo documento." diff --git a/mail_optional_autofollow/i18n/pt_BR.po b/mail_optional_autofollow/i18n/pt_BR.po new file mode 100644 index 0000000000..d72d30b7c5 --- /dev/null +++ b/mail_optional_autofollow/i18n/pt_BR.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_optional_autofollow +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: social (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-04-14 07:09+0000\n" +"PO-Revision-Date: 2016-04-05 07:05+0000\n" +"Last-Translator: <>\n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-social-8-0/language/pt_BR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: mail_optional_autofollow +#: model:ir.model,name:mail_optional_autofollow.model_mail_compose_message +msgid "Email composition wizard" +msgstr "Assistente de Composição de Email" + +#. module: mail_optional_autofollow +#: field:mail.compose.message,autofollow_recipients:0 +msgid "Make recipients followers" +msgstr "" + +#. module: mail_optional_autofollow +#: help:mail.compose.message,autofollow_recipients:0 +msgid "" +"if checked, the additional recipients will be added as followers on " +"the related object" +msgstr "" diff --git a/mail_optional_autofollow/i18n/sl.po b/mail_optional_autofollow/i18n/sl.po new file mode 100644 index 0000000000..9b86623c5e --- /dev/null +++ b/mail_optional_autofollow/i18n/sl.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_optional_autofollow +# +# Translators: +# Matjaž Mozetič , 2016 +msgid "" +msgstr "" +"Project-Id-Version: social (9.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-12 02:44+0000\n" +"PO-Revision-Date: 2016-06-11 22:15+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-social-9-0/language/sl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sl\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" + +#. module: mail_optional_autofollow +#: model:ir.model,name:mail_optional_autofollow.model_mail_compose_message +msgid "Email composition wizard" +msgstr "Čarovnik za sestavljanje e-pošte" + +#. module: mail_optional_autofollow +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +msgid "Make recipients followers" +msgstr "Prejemniki bodo sledilci" + +#. module: mail_optional_autofollow +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +msgid "" +"if checked, the additional recipients will be added as followers on " +"the related object" +msgstr "če označeno, se objektu dodajo dodatni prejemniki kot sledilci" From 9397be536b7d1a9c2e562969917889b7caeb506e Mon Sep 17 00:00:00 2001 From: Damien Carlier Date: Wed, 15 Nov 2017 14:34:53 +0100 Subject: [PATCH 11/27] [MIG] mail_optional_autofollow: Migration to 11.0 --- mail_optional_autofollow/__manifest__.py | 2 +- mail_optional_autofollow/tests/test_mail_optional_autofollow.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mail_optional_autofollow/__manifest__.py b/mail_optional_autofollow/__manifest__.py index 79626aa641..6d155946aa 100644 --- a/mail_optional_autofollow/__manifest__.py +++ b/mail_optional_autofollow/__manifest__.py @@ -10,7 +10,7 @@ 'Odoo Community Association (OCA)', 'website': "http://acsone.eu", 'category': 'Social Network', - 'version': '10.0.1.0.0', + 'version': '11.0.1.0.0', 'license': 'AGPL-3', 'depends': [ 'mail', diff --git a/mail_optional_autofollow/tests/test_mail_optional_autofollow.py b/mail_optional_autofollow/tests/test_mail_optional_autofollow.py index b583af2a79..7814d74869 100644 --- a/mail_optional_autofollow/tests/test_mail_optional_autofollow.py +++ b/mail_optional_autofollow/tests/test_mail_optional_autofollow.py @@ -2,7 +2,7 @@ # Copyright 2016 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp.tests import common +from odoo.tests import common class TestAttachExistingAttachment(common.TransactionCase): From d164af0cfa703598ac3f84f717dc1e49861c7344 Mon Sep 17 00:00:00 2001 From: Damien Carlier Date: Thu, 7 Dec 2017 10:57:39 +0100 Subject: [PATCH 12/27] Update README.rst --- mail_optional_autofollow/README.rst | 50 +++++++++++++++++++++++------ 1 file changed, 40 insertions(+), 10 deletions(-) diff --git a/mail_optional_autofollow/README.rst b/mail_optional_autofollow/README.rst index ceb4531200..6dcafdfda4 100644 --- a/mail_optional_autofollow/README.rst +++ b/mail_optional_autofollow/README.rst @@ -1,6 +1,6 @@ -.. 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 +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png + :target: https://www.gnu.org/licenses/agpl + :alt: License: AGPL-3 ======================== Mail optional autofollow @@ -9,10 +9,19 @@ Mail optional autofollow This module adds the possibility to choose if you want to automatically add new recipients as followers on mail.compose.message. +Installation +============ + + +Configuration +============= + + Usage ===== -To use this module, you need to use the autofollow recipients checkbox on mail.compose.message: +To use this module, you need to use the autofollow recipients checkbox on +mail.compose.message: Technically, this field is initialized to true if there is a 'mail_post_autofollow' key in the current context @@ -22,25 +31,44 @@ Technically, this field is initialized to true if there is a .. 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/10.0 + :target: https://runbot.odoo-community.org/runbot/205/11.0 + +Known issues / Roadmap +====================== + Bug Tracker =========== -Bugs are tracked on `GitHub 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 -`here `_. +Bugs are tracked on `GitHub 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 +`here `_. Credits ======= +Images +------ + +* Odoo Community Association: `Icon `_. + Contributors ------------ * Adrien Peiffer * Stéphane Bidoul +Do not contact contributors directly about support or help with technical issues. + +Funders +------- + +The development of this module has been financially supported by: + +* Acsone + Maintainer ---------- @@ -50,6 +78,8 @@ Maintainer 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. +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 https://odoo-community.org. From 7edb5aceedaacf4f70fe42ff5387d35cc6165f40 Mon Sep 17 00:00:00 2001 From: "Denis Robinet (ACSONE)" Date: Mon, 4 Dec 2017 17:21:55 +0100 Subject: [PATCH 13/27] [IMP] Hide the checkbox for the mass mailing in mail_optional_autofollow --- mail_optional_autofollow/wizard/mail_compose_message_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail_optional_autofollow/wizard/mail_compose_message_view.xml b/mail_optional_autofollow/wizard/mail_compose_message_view.xml index e21a295584..e388b49316 100644 --- a/mail_optional_autofollow/wizard/mail_compose_message_view.xml +++ b/mail_optional_autofollow/wizard/mail_compose_message_view.xml @@ -6,7 +6,7 @@ - + From eadd56245d9ea43c27bd789ee24dd68118414362 Mon Sep 17 00:00:00 2001 From: Damien Carlier Date: Tue, 12 Jun 2018 09:56:33 +0200 Subject: [PATCH 14/27] [IMP] Remove utf-8 lines --- mail_optional_autofollow/__init__.py | 1 - mail_optional_autofollow/__manifest__.py | 1 - mail_optional_autofollow/tests/__init__.py | 1 - mail_optional_autofollow/tests/test_mail_optional_autofollow.py | 1 - mail_optional_autofollow/wizard/__init__.py | 1 - mail_optional_autofollow/wizard/mail_compose_message.py | 1 - 6 files changed, 6 deletions(-) diff --git a/mail_optional_autofollow/__init__.py b/mail_optional_autofollow/__init__.py index 095712720b..9e1c952a81 100644 --- a/mail_optional_autofollow/__init__.py +++ b/mail_optional_autofollow/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import wizard diff --git a/mail_optional_autofollow/__manifest__.py b/mail_optional_autofollow/__manifest__.py index 6d155946aa..1bfea141cc 100644 --- a/mail_optional_autofollow/__manifest__.py +++ b/mail_optional_autofollow/__manifest__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { diff --git a/mail_optional_autofollow/tests/__init__.py b/mail_optional_autofollow/tests/__init__.py index 3667d24bd9..f0cef833f7 100644 --- a/mail_optional_autofollow/tests/__init__.py +++ b/mail_optional_autofollow/tests/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/mail_optional_autofollow/tests/test_mail_optional_autofollow.py b/mail_optional_autofollow/tests/test_mail_optional_autofollow.py index 7814d74869..f2c253c015 100644 --- a/mail_optional_autofollow/tests/test_mail_optional_autofollow.py +++ b/mail_optional_autofollow/tests/test_mail_optional_autofollow.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/mail_optional_autofollow/wizard/__init__.py b/mail_optional_autofollow/wizard/__init__.py index c82500c9bf..660d786aed 100644 --- a/mail_optional_autofollow/wizard/__init__.py +++ b/mail_optional_autofollow/wizard/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import mail_compose_message diff --git a/mail_optional_autofollow/wizard/mail_compose_message.py b/mail_optional_autofollow/wizard/mail_compose_message.py index 442c1725e5..5ef8945795 100644 --- a/mail_optional_autofollow/wizard/mail_compose_message.py +++ b/mail_optional_autofollow/wizard/mail_compose_message.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). From 23570d9f0f55cdc72f74167ea8a131b450d64b0c Mon Sep 17 00:00:00 2001 From: Damien Carlier Date: Tue, 12 Jun 2018 09:58:14 +0200 Subject: [PATCH 15/27] [IMP] Remove headers on init.py files --- mail_optional_autofollow/__init__.py | 2 -- mail_optional_autofollow/tests/__init__.py | 3 --- mail_optional_autofollow/wizard/__init__.py | 2 -- 3 files changed, 7 deletions(-) diff --git a/mail_optional_autofollow/__init__.py b/mail_optional_autofollow/__init__.py index 9e1c952a81..40272379f7 100644 --- a/mail_optional_autofollow/__init__.py +++ b/mail_optional_autofollow/__init__.py @@ -1,3 +1 @@ -# Copyright 2016 ACSONE SA/NV () -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import wizard diff --git a/mail_optional_autofollow/tests/__init__.py b/mail_optional_autofollow/tests/__init__.py index f0cef833f7..dd099352b0 100644 --- a/mail_optional_autofollow/tests/__init__.py +++ b/mail_optional_autofollow/tests/__init__.py @@ -1,4 +1 @@ -# Copyright 2016 ACSONE SA/NV () -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - from . import test_mail_optional_autofollow diff --git a/mail_optional_autofollow/wizard/__init__.py b/mail_optional_autofollow/wizard/__init__.py index 660d786aed..b528d997d1 100644 --- a/mail_optional_autofollow/wizard/__init__.py +++ b/mail_optional_autofollow/wizard/__init__.py @@ -1,3 +1 @@ -# Copyright 2016 ACSONE SA/NV () -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import mail_compose_message From f32aa84a3452aadf4ecdd75f9b704ed7fae1425e Mon Sep 17 00:00:00 2001 From: oca-travis Date: Thu, 29 Nov 2018 08:31:23 +0000 Subject: [PATCH 16/27] [UPD] Update mail_optional_autofollow.pot --- mail_optional_autofollow/i18n/ca.po | 11 +++---- mail_optional_autofollow/i18n/de.po | 11 +++---- mail_optional_autofollow/i18n/es.po | 11 +++---- mail_optional_autofollow/i18n/es_CO.po | 11 +++---- mail_optional_autofollow/i18n/fr.po | 11 ++++--- mail_optional_autofollow/i18n/hr.po | 14 +++++---- mail_optional_autofollow/i18n/it.po | 4 +-- .../i18n/mail_optional_autofollow.pot | 30 +++++++++++++++++++ mail_optional_autofollow/i18n/pt_BR.po | 11 +++---- mail_optional_autofollow/i18n/sl.po | 10 ++++--- 10 files changed, 84 insertions(+), 40 deletions(-) create mode 100644 mail_optional_autofollow/i18n/mail_optional_autofollow.pot diff --git a/mail_optional_autofollow/i18n/ca.po b/mail_optional_autofollow/i18n/ca.po index d5748082cc..24ca56ec07 100644 --- a/mail_optional_autofollow/i18n/ca.po +++ b/mail_optional_autofollow/i18n/ca.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * mail_optional_autofollow -# +# # Translators: msgid "" msgstr "" @@ -10,11 +10,12 @@ msgstr "" "POT-Creation-Date: 2016-04-14 07:09+0000\n" "PO-Revision-Date: 2016-04-05 07:05+0000\n" "Last-Translator: <>\n" -"Language-Team: Catalan (http://www.transifex.com/oca/OCA-social-8-0/language/ca/)\n" +"Language-Team: Catalan (http://www.transifex.com/oca/OCA-social-8-0/language/" +"ca/)\n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: ca\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: mail_optional_autofollow @@ -23,12 +24,12 @@ msgid "Email composition wizard" msgstr "Assistent per composició de correus electrònics" #. module: mail_optional_autofollow -#: field:mail.compose.message,autofollow_recipients:0 +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients msgid "Make recipients followers" msgstr "" #. module: mail_optional_autofollow -#: help:mail.compose.message,autofollow_recipients:0 +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " "the related object" diff --git a/mail_optional_autofollow/i18n/de.po b/mail_optional_autofollow/i18n/de.po index c2cc1036f0..7485660d06 100644 --- a/mail_optional_autofollow/i18n/de.po +++ b/mail_optional_autofollow/i18n/de.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * mail_optional_autofollow -# +# # Translators: msgid "" msgstr "" @@ -10,11 +10,12 @@ msgstr "" "POT-Creation-Date: 2016-04-14 07:09+0000\n" "PO-Revision-Date: 2016-04-05 07:05+0000\n" "Last-Translator: <>\n" -"Language-Team: German (http://www.transifex.com/oca/OCA-social-8-0/language/de/)\n" +"Language-Team: German (http://www.transifex.com/oca/OCA-social-8-0/language/" +"de/)\n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: de\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: mail_optional_autofollow @@ -23,12 +24,12 @@ msgid "Email composition wizard" msgstr "Assistent zum Email verfassen" #. module: mail_optional_autofollow -#: field:mail.compose.message,autofollow_recipients:0 +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients msgid "Make recipients followers" msgstr "" #. module: mail_optional_autofollow -#: help:mail.compose.message,autofollow_recipients:0 +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " "the related object" diff --git a/mail_optional_autofollow/i18n/es.po b/mail_optional_autofollow/i18n/es.po index dc04d6ad1e..383e04f061 100644 --- a/mail_optional_autofollow/i18n/es.po +++ b/mail_optional_autofollow/i18n/es.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * mail_optional_autofollow -# +# # Translators: msgid "" msgstr "" @@ -10,11 +10,12 @@ msgstr "" "POT-Creation-Date: 2016-04-14 07:09+0000\n" "PO-Revision-Date: 2016-04-05 07:05+0000\n" "Last-Translator: <>\n" -"Language-Team: Spanish (http://www.transifex.com/oca/OCA-social-8-0/language/es/)\n" +"Language-Team: Spanish (http://www.transifex.com/oca/OCA-social-8-0/language/" +"es/)\n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: es\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: mail_optional_autofollow @@ -23,12 +24,12 @@ msgid "Email composition wizard" msgstr "Asistente composición Correo Electrónico" #. module: mail_optional_autofollow -#: field:mail.compose.message,autofollow_recipients:0 +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients msgid "Make recipients followers" msgstr "" #. module: mail_optional_autofollow -#: help:mail.compose.message,autofollow_recipients:0 +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " "the related object" diff --git a/mail_optional_autofollow/i18n/es_CO.po b/mail_optional_autofollow/i18n/es_CO.po index 0659cee11a..ad0cee8323 100644 --- a/mail_optional_autofollow/i18n/es_CO.po +++ b/mail_optional_autofollow/i18n/es_CO.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * mail_optional_autofollow -# +# # Translators: msgid "" msgstr "" @@ -10,11 +10,12 @@ msgstr "" "POT-Creation-Date: 2016-04-14 07:09+0000\n" "PO-Revision-Date: 2016-04-05 07:05+0000\n" "Last-Translator: <>\n" -"Language-Team: Spanish (Colombia) (http://www.transifex.com/oca/OCA-social-8-0/language/es_CO/)\n" +"Language-Team: Spanish (Colombia) (http://www.transifex.com/oca/OCA-" +"social-8-0/language/es_CO/)\n" +"Language: es_CO\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: es_CO\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: mail_optional_autofollow @@ -23,12 +24,12 @@ msgid "Email composition wizard" msgstr "Asistente de redacción de E-mail" #. module: mail_optional_autofollow -#: field:mail.compose.message,autofollow_recipients:0 +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients msgid "Make recipients followers" msgstr "" #. module: mail_optional_autofollow -#: help:mail.compose.message,autofollow_recipients:0 +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " "the related object" diff --git a/mail_optional_autofollow/i18n/fr.po b/mail_optional_autofollow/i18n/fr.po index b30a8a4a15..64ad085628 100644 --- a/mail_optional_autofollow/i18n/fr.po +++ b/mail_optional_autofollow/i18n/fr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * mail_optional_autofollow -# +# # Translators: msgid "" msgstr "" @@ -10,11 +10,12 @@ msgstr "" "POT-Creation-Date: 2016-06-12 02:44+0000\n" "PO-Revision-Date: 2016-06-11 22:15+0000\n" "Last-Translator: OCA Transbot \n" -"Language-Team: French (http://www.transifex.com/oca/OCA-social-9-0/language/fr/)\n" +"Language-Team: French (http://www.transifex.com/oca/OCA-social-9-0/language/" +"fr/)\n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: fr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: mail_optional_autofollow @@ -32,4 +33,6 @@ msgstr "Abonner les destinataires" msgid "" "if checked, the additional recipients will be added as followers on " "the related object" -msgstr "Si coché, les destinataires supplémentaires seront ajoutés comme abonné au file de discussion sur l'objet lié" +msgstr "" +"Si coché, les destinataires supplémentaires seront ajoutés comme abonné au " +"file de discussion sur l'objet lié" diff --git a/mail_optional_autofollow/i18n/hr.po b/mail_optional_autofollow/i18n/hr.po index 2c00876283..18ed63a3d4 100644 --- a/mail_optional_autofollow/i18n/hr.po +++ b/mail_optional_autofollow/i18n/hr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * mail_optional_autofollow -# +# # Translators: # Bole , 2016 msgid "" @@ -11,12 +11,14 @@ msgstr "" "POT-Creation-Date: 2016-06-13 02:44+0000\n" "PO-Revision-Date: 2016-06-14 11:31+0000\n" "Last-Translator: Bole \n" -"Language-Team: Croatian (http://www.transifex.com/oca/OCA-social-9-0/language/hr/)\n" +"Language-Team: Croatian (http://www.transifex.com/oca/OCA-social-9-0/" +"language/hr/)\n" +"Language: hr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: hr\n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" #. module: mail_optional_autofollow #: model:ir.model,name:mail_optional_autofollow.model_mail_compose_message @@ -33,4 +35,6 @@ msgstr "Učini primatelje i pratiteljima" msgid "" "if checked, the additional recipients will be added as followers on " "the related object" -msgstr "Ukoliko je označeno, dodatni primatelji će biti dodani i kao pratitelji na povezanom objektu" +msgstr "" +"Ukoliko je označeno, dodatni primatelji će biti dodani i kao pratitelji na " +"povezanom objektu" diff --git a/mail_optional_autofollow/i18n/it.po b/mail_optional_autofollow/i18n/it.po index 6523691d66..ec6f3bc2b3 100644 --- a/mail_optional_autofollow/i18n/it.po +++ b/mail_optional_autofollow/i18n/it.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * mail_optional_autofollow -# +# # Translators: # Marius Marolla , 2017 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2017-05-17 01:02+0000\n" "Last-Translator: Marius Marolla , 2017\n" "Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: it\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: mail_optional_autofollow diff --git a/mail_optional_autofollow/i18n/mail_optional_autofollow.pot b/mail_optional_autofollow/i18n/mail_optional_autofollow.pot new file mode 100644 index 0000000000..4bd676b328 --- /dev/null +++ b/mail_optional_autofollow/i18n/mail_optional_autofollow.pot @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_optional_autofollow +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.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_optional_autofollow +#: model:ir.model,name:mail_optional_autofollow.model_mail_compose_message +msgid "Email composition wizard" +msgstr "" + +#. module: mail_optional_autofollow +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +msgid "Make recipients followers" +msgstr "" + +#. module: mail_optional_autofollow +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +msgid "if checked, the additional recipients will be added as followers on the related object" +msgstr "" + diff --git a/mail_optional_autofollow/i18n/pt_BR.po b/mail_optional_autofollow/i18n/pt_BR.po index d72d30b7c5..eb6bbcd211 100644 --- a/mail_optional_autofollow/i18n/pt_BR.po +++ b/mail_optional_autofollow/i18n/pt_BR.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * mail_optional_autofollow -# +# # Translators: msgid "" msgstr "" @@ -10,11 +10,12 @@ msgstr "" "POT-Creation-Date: 2016-04-14 07:09+0000\n" "PO-Revision-Date: 2016-04-05 07:05+0000\n" "Last-Translator: <>\n" -"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-social-8-0/language/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-" +"social-8-0/language/pt_BR/)\n" +"Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: pt_BR\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: mail_optional_autofollow @@ -23,12 +24,12 @@ msgid "Email composition wizard" msgstr "Assistente de Composição de Email" #. module: mail_optional_autofollow -#: field:mail.compose.message,autofollow_recipients:0 +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients msgid "Make recipients followers" msgstr "" #. module: mail_optional_autofollow -#: help:mail.compose.message,autofollow_recipients:0 +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " "the related object" diff --git a/mail_optional_autofollow/i18n/sl.po b/mail_optional_autofollow/i18n/sl.po index 9b86623c5e..ccfab1a6c3 100644 --- a/mail_optional_autofollow/i18n/sl.po +++ b/mail_optional_autofollow/i18n/sl.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * mail_optional_autofollow -# +# # Translators: # Matjaž Mozetič , 2016 msgid "" @@ -11,12 +11,14 @@ msgstr "" "POT-Creation-Date: 2016-06-12 02:44+0000\n" "PO-Revision-Date: 2016-06-11 22:15+0000\n" "Last-Translator: OCA Transbot \n" -"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-social-9-0/language/sl/)\n" +"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-social-9-0/" +"language/sl/)\n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: sl\n" -"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\n" #. module: mail_optional_autofollow #: model:ir.model,name:mail_optional_autofollow.model_mail_compose_message From 8961f1fba2bce1ffc30b132348832fd3ecc18334 Mon Sep 17 00:00:00 2001 From: Maria Sparenberg Date: Fri, 14 Dec 2018 14:30:57 +0000 Subject: [PATCH 17/27] Translated using Weblate (German) Currently translated at 100.0% (3 of 3 strings) Translation: social-11.0/social-11.0-mail_optional_autofollow Translate-URL: https://translation.odoo-community.org/projects/social-11-0/social-11-0-mail_optional_autofollow/de/ --- mail_optional_autofollow/i18n/de.po | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mail_optional_autofollow/i18n/de.po b/mail_optional_autofollow/i18n/de.po index 7485660d06..91684d2c77 100644 --- a/mail_optional_autofollow/i18n/de.po +++ b/mail_optional_autofollow/i18n/de.po @@ -8,15 +8,16 @@ msgstr "" "Project-Id-Version: social (8.0)\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-04-14 07:09+0000\n" -"PO-Revision-Date: 2016-04-05 07:05+0000\n" -"Last-Translator: <>\n" +"PO-Revision-Date: 2018-12-15 14:58+0000\n" +"Last-Translator: Maria Sparenberg \n" "Language-Team: German (http://www.transifex.com/oca/OCA-social-8-0/language/" "de/)\n" "Language: de\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" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.3\n" #. module: mail_optional_autofollow #: model:ir.model,name:mail_optional_autofollow.model_mail_compose_message @@ -26,7 +27,7 @@ msgstr "Assistent zum Email verfassen" #. module: mail_optional_autofollow #: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients msgid "Make recipients followers" -msgstr "" +msgstr "Empfänger als Abonnenten hinzufügen" #. module: mail_optional_autofollow #: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients @@ -34,3 +35,5 @@ msgid "" "if checked, the additional recipients will be added as followers on " "the related object" msgstr "" +"Wenn der Haken gesetzt ist, werden die zusätzlichen Empfänger zu Abonnenten " +"dieses Objektes" From 2f63d7ba9eaae74ba7018c513b830c04e8713a03 Mon Sep 17 00:00:00 2001 From: "laurent.corron" Date: Wed, 6 Nov 2019 11:37:46 +0100 Subject: [PATCH 18/27] [REF] mail_optional_autofollow: Black python code --- mail_optional_autofollow/__manifest__.py | 25 ++++------ .../tests/test_mail_optional_autofollow.py | 47 +++++++++++-------- .../wizard/mail_compose_message.py | 20 ++++---- .../wizard/mail_compose_message_view.xml | 2 +- 4 files changed, 49 insertions(+), 45 deletions(-) diff --git a/mail_optional_autofollow/__manifest__.py b/mail_optional_autofollow/__manifest__.py index 1bfea141cc..503e5ee8cf 100644 --- a/mail_optional_autofollow/__manifest__.py +++ b/mail_optional_autofollow/__manifest__.py @@ -1,21 +1,16 @@ # Copyright 2016 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { - 'name': "Mail optional autofollow", - 'summary': """ + "name": "Mail optional autofollow", + "summary": """ Choose if you want to automatically add new recipients as followers on mail.compose.message""", - 'author': 'ACSONE SA/NV,' - 'Odoo Community Association (OCA)', - 'website': "http://acsone.eu", - 'category': 'Social Network', - 'version': '11.0.1.0.0', - 'license': 'AGPL-3', - 'depends': [ - 'mail', - ], - 'data': [ - 'wizard/mail_compose_message_view.xml', - ], - 'installable': True, + "author": "ACSONE SA/NV," "Odoo Community Association (OCA)", + "website": "http://acsone.eu", + "category": "Social Network", + "version": "11.0.1.0.0", + "license": "AGPL-3", + "depends": ["mail",], + "data": ["wizard/mail_compose_message_view.xml",], + "installable": True, } diff --git a/mail_optional_autofollow/tests/test_mail_optional_autofollow.py b/mail_optional_autofollow/tests/test_mail_optional_autofollow.py index f2c253c015..887a48c645 100644 --- a/mail_optional_autofollow/tests/test_mail_optional_autofollow.py +++ b/mail_optional_autofollow/tests/test_mail_optional_autofollow.py @@ -5,40 +5,47 @@ class TestAttachExistingAttachment(common.TransactionCase): - def setUp(self): super(TestAttachExistingAttachment, self).setUp() - self.partner_obj = self.env['res.partner'] - self.partner_01 = self.env.ref('base.res_partner_10') - self.partner_02 = self.env.ref('base.res_partner_address_17') + self.partner_obj = self.env["res.partner"] + self.partner_01 = self.env.ref("base.res_partner_10") + self.partner_02 = self.env.ref("base.res_partner_address_17") def test_send_email_attachment(self): ctx = self.env.context.copy() - ctx.update({ - 'default_model': 'res.partner', - 'default_res_id': self.partner_01.id, - 'default_composition_mode': 'comment', - }) - mail_compose = self.env['mail.compose.message'] - values = mail_compose.with_context(ctx)\ - .onchange_template_id(False, 'comment', 'res.partner', - self.partner_01.id)['value'] - values['partner_ids'] = [(4, self.partner_02.id)] + ctx.update( + { + "default_model": "res.partner", + "default_res_id": self.partner_01.id, + "default_composition_mode": "comment", + } + ) + mail_compose = self.env["mail.compose.message"] + values = mail_compose.with_context(ctx).onchange_template_id( + False, "comment", "res.partner", self.partner_01.id + )["value"] + values["partner_ids"] = [(4, self.partner_02.id)] compose_id = mail_compose.with_context(ctx).create(values) compose_id.autofollow_recipients = False compose_id.with_context(ctx).send_mail() res = self.env["mail.followers"].search( - [('res_model', '=', 'res.partner'), - ('res_id', '=', self.partner_01.id), - ('partner_id', '=', self.partner_02.id)]) + [ + ("res_model", "=", "res.partner"), + ("res_id", "=", self.partner_01.id), + ("partner_id", "=", self.partner_02.id), + ] + ) # I check if the recipient isn't a follower self.assertEqual(len(res.ids), 0) compose_id = mail_compose.with_context(ctx).create(values) compose_id.autofollow_recipients = True compose_id.with_context(ctx).send_mail() res = self.env["mail.followers"].search( - [('res_model', '=', 'res.partner'), - ('res_id', '=', self.partner_01.id), - ('partner_id', '=', self.partner_02.id)]) + [ + ("res_model", "=", "res.partner"), + ("res_id", "=", self.partner_01.id), + ("partner_id", "=", self.partner_02.id), + ] + ) # I check if the recipient is a follower self.assertEqual(len(res.ids), 1) diff --git a/mail_optional_autofollow/wizard/mail_compose_message.py b/mail_optional_autofollow/wizard/mail_compose_message.py index 5ef8945795..853b671e8b 100644 --- a/mail_optional_autofollow/wizard/mail_compose_message.py +++ b/mail_optional_autofollow/wizard/mail_compose_message.py @@ -1,29 +1,31 @@ # Copyright 2016 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo import models, fields, api +from odoo import api, fields, models class MailComposeMessage(models.TransientModel): - _inherit = 'mail.compose.message' + _inherit = "mail.compose.message" @api.model def default_get(self, fields_list): res = super(MailComposeMessage, self).default_get(fields_list) res.setdefault( - 'autofollow_recipients', - self.env.context.get('mail_post_autofollow', False)) + "autofollow_recipients", self.env.context.get("mail_post_autofollow", False) + ) return res autofollow_recipients = fields.Boolean( - string='Make recipients followers', + string="Make recipients followers", help="""if checked, the additional recipients will be added as\ - followers on the related object""") + followers on the related object""", + ) @api.multi def send_mail(self, auto_commit=False): for wizard in self: - super(MailComposeMessage, wizard.with_context( - mail_post_autofollow=wizard.autofollow_recipients)).send_mail( - auto_commit=auto_commit) + super( + MailComposeMessage, + wizard.with_context(mail_post_autofollow=wizard.autofollow_recipients), + ).send_mail(auto_commit=auto_commit) return True diff --git a/mail_optional_autofollow/wizard/mail_compose_message_view.xml b/mail_optional_autofollow/wizard/mail_compose_message_view.xml index e388b49316..a5ff80d257 100644 --- a/mail_optional_autofollow/wizard/mail_compose_message_view.xml +++ b/mail_optional_autofollow/wizard/mail_compose_message_view.xml @@ -10,4 +10,4 @@ - \ No newline at end of file + From 60635ce273ee699dfe8b52f137797c9daefd60b0 Mon Sep 17 00:00:00 2001 From: "laurent.corron" Date: Wed, 6 Nov 2019 11:37:46 +0100 Subject: [PATCH 19/27] [MIG] mail_optional_autofollow: Migration to 13.0 --- mail_optional_autofollow/__manifest__.py | 6 +++--- mail_optional_autofollow/wizard/mail_compose_message.py | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/mail_optional_autofollow/__manifest__.py b/mail_optional_autofollow/__manifest__.py index 503e5ee8cf..7536d3473c 100644 --- a/mail_optional_autofollow/__manifest__.py +++ b/mail_optional_autofollow/__manifest__.py @@ -8,9 +8,9 @@ "author": "ACSONE SA/NV," "Odoo Community Association (OCA)", "website": "http://acsone.eu", "category": "Social Network", - "version": "11.0.1.0.0", + "version": "13.0.1.0.0", "license": "AGPL-3", - "depends": ["mail",], - "data": ["wizard/mail_compose_message_view.xml",], + "depends": ["mail"], + "data": ["wizard/mail_compose_message_view.xml"], "installable": True, } diff --git a/mail_optional_autofollow/wizard/mail_compose_message.py b/mail_optional_autofollow/wizard/mail_compose_message.py index 853b671e8b..8b3dd082bf 100644 --- a/mail_optional_autofollow/wizard/mail_compose_message.py +++ b/mail_optional_autofollow/wizard/mail_compose_message.py @@ -21,7 +21,6 @@ def default_get(self, fields_list): followers on the related object""", ) - @api.multi def send_mail(self, auto_commit=False): for wizard in self: super( From b5e003c7334ee95b6056437726667274e786cfa5 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Wed, 4 Dec 2019 07:41:46 +0000 Subject: [PATCH 20/27] [UPD] Update mail_optional_autofollow.pot --- .../i18n/mail_optional_autofollow.pot | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/mail_optional_autofollow/i18n/mail_optional_autofollow.pot b/mail_optional_autofollow/i18n/mail_optional_autofollow.pot index 4bd676b328..e3524a6070 100644 --- a/mail_optional_autofollow/i18n/mail_optional_autofollow.pot +++ b/mail_optional_autofollow/i18n/mail_optional_autofollow.pot @@ -1,12 +1,12 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * mail_optional_autofollow +# * mail_optional_autofollow # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 11.0\n" +"Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: <>\n" +"Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -19,12 +19,13 @@ msgid "Email composition wizard" msgstr "" #. module: mail_optional_autofollow -#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "" #. module: mail_optional_autofollow -#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients -msgid "if checked, the additional recipients will be added as followers on the related object" +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients +msgid "" +"if checked, the additional recipients will be added as followers on " +"the related object" msgstr "" - From 4f826a486f9a7ace14d540f0d5ab6814161b34c1 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Wed, 15 Jan 2020 09:25:34 +0000 Subject: [PATCH 21/27] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: social-13.0/social-13.0-mail_optional_autofollow Translate-URL: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_optional_autofollow/ --- mail_optional_autofollow/i18n/ca.po | 4 ++-- mail_optional_autofollow/i18n/de.po | 4 ++-- mail_optional_autofollow/i18n/es.po | 4 ++-- mail_optional_autofollow/i18n/es_CO.po | 4 ++-- mail_optional_autofollow/i18n/fr.po | 4 ++-- mail_optional_autofollow/i18n/hr.po | 4 ++-- mail_optional_autofollow/i18n/it.po | 4 ++-- mail_optional_autofollow/i18n/pt_BR.po | 4 ++-- mail_optional_autofollow/i18n/sl.po | 4 ++-- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/mail_optional_autofollow/i18n/ca.po b/mail_optional_autofollow/i18n/ca.po index 24ca56ec07..41a58a0774 100644 --- a/mail_optional_autofollow/i18n/ca.po +++ b/mail_optional_autofollow/i18n/ca.po @@ -24,12 +24,12 @@ msgid "Email composition wizard" msgstr "Assistent per composició de correus electrònics" #. module: mail_optional_autofollow -#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "" #. module: mail_optional_autofollow -#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " "the related object" diff --git a/mail_optional_autofollow/i18n/de.po b/mail_optional_autofollow/i18n/de.po index 91684d2c77..45d199bb9d 100644 --- a/mail_optional_autofollow/i18n/de.po +++ b/mail_optional_autofollow/i18n/de.po @@ -25,12 +25,12 @@ msgid "Email composition wizard" msgstr "Assistent zum Email verfassen" #. module: mail_optional_autofollow -#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "Empfänger als Abonnenten hinzufügen" #. module: mail_optional_autofollow -#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " "the related object" diff --git a/mail_optional_autofollow/i18n/es.po b/mail_optional_autofollow/i18n/es.po index 383e04f061..d1a0fa03ff 100644 --- a/mail_optional_autofollow/i18n/es.po +++ b/mail_optional_autofollow/i18n/es.po @@ -24,12 +24,12 @@ msgid "Email composition wizard" msgstr "Asistente composición Correo Electrónico" #. module: mail_optional_autofollow -#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "" #. module: mail_optional_autofollow -#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " "the related object" diff --git a/mail_optional_autofollow/i18n/es_CO.po b/mail_optional_autofollow/i18n/es_CO.po index ad0cee8323..fe117459bf 100644 --- a/mail_optional_autofollow/i18n/es_CO.po +++ b/mail_optional_autofollow/i18n/es_CO.po @@ -24,12 +24,12 @@ msgid "Email composition wizard" msgstr "Asistente de redacción de E-mail" #. module: mail_optional_autofollow -#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "" #. module: mail_optional_autofollow -#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " "the related object" diff --git a/mail_optional_autofollow/i18n/fr.po b/mail_optional_autofollow/i18n/fr.po index 64ad085628..54a32ced1b 100644 --- a/mail_optional_autofollow/i18n/fr.po +++ b/mail_optional_autofollow/i18n/fr.po @@ -24,12 +24,12 @@ msgid "Email composition wizard" msgstr "Assistant de composition de courriel" #. module: mail_optional_autofollow -#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "Abonner les destinataires" #. module: mail_optional_autofollow -#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " "the related object" diff --git a/mail_optional_autofollow/i18n/hr.po b/mail_optional_autofollow/i18n/hr.po index 18ed63a3d4..c89c675794 100644 --- a/mail_optional_autofollow/i18n/hr.po +++ b/mail_optional_autofollow/i18n/hr.po @@ -26,12 +26,12 @@ msgid "Email composition wizard" msgstr "Čarobnjak za sastavljanje maila" #. module: mail_optional_autofollow -#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "Učini primatelje i pratiteljima" #. module: mail_optional_autofollow -#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " "the related object" diff --git a/mail_optional_autofollow/i18n/it.po b/mail_optional_autofollow/i18n/it.po index ec6f3bc2b3..5d7b35f851 100644 --- a/mail_optional_autofollow/i18n/it.po +++ b/mail_optional_autofollow/i18n/it.po @@ -24,12 +24,12 @@ msgid "Email composition wizard" msgstr "Wizard Creazione Email" #. module: mail_optional_autofollow -#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "Destinatari in Follower" #. module: mail_optional_autofollow -#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " "the related object" diff --git a/mail_optional_autofollow/i18n/pt_BR.po b/mail_optional_autofollow/i18n/pt_BR.po index eb6bbcd211..cafe3edc12 100644 --- a/mail_optional_autofollow/i18n/pt_BR.po +++ b/mail_optional_autofollow/i18n/pt_BR.po @@ -24,12 +24,12 @@ msgid "Email composition wizard" msgstr "Assistente de Composição de Email" #. module: mail_optional_autofollow -#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "" #. module: mail_optional_autofollow -#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " "the related object" diff --git a/mail_optional_autofollow/i18n/sl.po b/mail_optional_autofollow/i18n/sl.po index ccfab1a6c3..7d6aaf8864 100644 --- a/mail_optional_autofollow/i18n/sl.po +++ b/mail_optional_autofollow/i18n/sl.po @@ -26,12 +26,12 @@ msgid "Email composition wizard" msgstr "Čarovnik za sestavljanje e-pošte" #. module: mail_optional_autofollow -#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "Prejemniki bodo sledilci" #. module: mail_optional_autofollow -#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message_autofollow_recipients +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " "the related object" From 6d6c7ba043f166a785190125d27609363ac29450 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Tue, 26 Jan 2021 14:06:17 +0000 Subject: [PATCH 22/27] [IMP] pre-commit run -a --- .../wizard/mail_compose_message_view.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mail_optional_autofollow/wizard/mail_compose_message_view.xml b/mail_optional_autofollow/wizard/mail_compose_message_view.xml index a5ff80d257..8899f9a275 100644 --- a/mail_optional_autofollow/wizard/mail_compose_message_view.xml +++ b/mail_optional_autofollow/wizard/mail_compose_message_view.xml @@ -1,12 +1,15 @@ - + mail.compose.message.form (mail_optional_autofollow) mail.compose.message - + - + From 9078411c33be8212fff4fff29e607fca0febbe8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20D=2E=20D=C3=ADaz?= Date: Tue, 26 Jan 2021 17:37:52 +0100 Subject: [PATCH 23/27] [IMP] Apply pre-commit changes: Resolve conflicts --- mail_optional_autofollow/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail_optional_autofollow/__manifest__.py b/mail_optional_autofollow/__manifest__.py index 7536d3473c..8b168aaaab 100644 --- a/mail_optional_autofollow/__manifest__.py +++ b/mail_optional_autofollow/__manifest__.py @@ -6,7 +6,7 @@ Choose if you want to automatically add new recipients as followers on mail.compose.message""", "author": "ACSONE SA/NV," "Odoo Community Association (OCA)", - "website": "http://acsone.eu", + "website": "https://github.com/OCA/social", "category": "Social Network", "version": "13.0.1.0.0", "license": "AGPL-3", From 0a68c1d1f104d583a5b557ab472a239d78c33aa7 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Thu, 11 Nov 2021 11:52:35 +0000 Subject: [PATCH 24/27] [UPD] Update mail_optional_autofollow.pot --- mail_optional_autofollow/i18n/mail_optional_autofollow.pot | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mail_optional_autofollow/i18n/mail_optional_autofollow.pot b/mail_optional_autofollow/i18n/mail_optional_autofollow.pot index e3524a6070..d609828d83 100644 --- a/mail_optional_autofollow/i18n/mail_optional_autofollow.pot +++ b/mail_optional_autofollow/i18n/mail_optional_autofollow.pot @@ -19,11 +19,13 @@ msgid "Email composition wizard" msgstr "" #. module: mail_optional_autofollow +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients #: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "" #. module: mail_optional_autofollow +#: model:ir.model.fields,help:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients #: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " From eb52dc9a3b357681e7ab873f639a88695697c764 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Thu, 11 Nov 2021 12:05:33 +0000 Subject: [PATCH 25/27] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: social-13.0/social-13.0-mail_optional_autofollow Translate-URL: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_optional_autofollow/ --- mail_optional_autofollow/i18n/ca.po | 2 ++ mail_optional_autofollow/i18n/de.po | 2 ++ mail_optional_autofollow/i18n/es.po | 2 ++ mail_optional_autofollow/i18n/es_CO.po | 2 ++ mail_optional_autofollow/i18n/fr.po | 2 ++ mail_optional_autofollow/i18n/hr.po | 2 ++ mail_optional_autofollow/i18n/it.po | 2 ++ mail_optional_autofollow/i18n/pt_BR.po | 2 ++ mail_optional_autofollow/i18n/sl.po | 2 ++ 9 files changed, 18 insertions(+) diff --git a/mail_optional_autofollow/i18n/ca.po b/mail_optional_autofollow/i18n/ca.po index 41a58a0774..269c592906 100644 --- a/mail_optional_autofollow/i18n/ca.po +++ b/mail_optional_autofollow/i18n/ca.po @@ -24,11 +24,13 @@ msgid "Email composition wizard" msgstr "Assistent per composició de correus electrònics" #. module: mail_optional_autofollow +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients #: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "" #. module: mail_optional_autofollow +#: model:ir.model.fields,help:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients #: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " diff --git a/mail_optional_autofollow/i18n/de.po b/mail_optional_autofollow/i18n/de.po index 45d199bb9d..c018494650 100644 --- a/mail_optional_autofollow/i18n/de.po +++ b/mail_optional_autofollow/i18n/de.po @@ -25,11 +25,13 @@ msgid "Email composition wizard" msgstr "Assistent zum Email verfassen" #. module: mail_optional_autofollow +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients #: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "Empfänger als Abonnenten hinzufügen" #. module: mail_optional_autofollow +#: model:ir.model.fields,help:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients #: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " diff --git a/mail_optional_autofollow/i18n/es.po b/mail_optional_autofollow/i18n/es.po index d1a0fa03ff..b5880cec10 100644 --- a/mail_optional_autofollow/i18n/es.po +++ b/mail_optional_autofollow/i18n/es.po @@ -24,11 +24,13 @@ msgid "Email composition wizard" msgstr "Asistente composición Correo Electrónico" #. module: mail_optional_autofollow +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients #: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "" #. module: mail_optional_autofollow +#: model:ir.model.fields,help:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients #: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " diff --git a/mail_optional_autofollow/i18n/es_CO.po b/mail_optional_autofollow/i18n/es_CO.po index fe117459bf..4eafbc14af 100644 --- a/mail_optional_autofollow/i18n/es_CO.po +++ b/mail_optional_autofollow/i18n/es_CO.po @@ -24,11 +24,13 @@ msgid "Email composition wizard" msgstr "Asistente de redacción de E-mail" #. module: mail_optional_autofollow +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients #: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "" #. module: mail_optional_autofollow +#: model:ir.model.fields,help:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients #: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " diff --git a/mail_optional_autofollow/i18n/fr.po b/mail_optional_autofollow/i18n/fr.po index 54a32ced1b..28161a6fcb 100644 --- a/mail_optional_autofollow/i18n/fr.po +++ b/mail_optional_autofollow/i18n/fr.po @@ -24,11 +24,13 @@ msgid "Email composition wizard" msgstr "Assistant de composition de courriel" #. module: mail_optional_autofollow +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients #: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "Abonner les destinataires" #. module: mail_optional_autofollow +#: model:ir.model.fields,help:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients #: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " diff --git a/mail_optional_autofollow/i18n/hr.po b/mail_optional_autofollow/i18n/hr.po index c89c675794..b70cfb3c61 100644 --- a/mail_optional_autofollow/i18n/hr.po +++ b/mail_optional_autofollow/i18n/hr.po @@ -26,11 +26,13 @@ msgid "Email composition wizard" msgstr "Čarobnjak za sastavljanje maila" #. module: mail_optional_autofollow +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients #: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "Učini primatelje i pratiteljima" #. module: mail_optional_autofollow +#: model:ir.model.fields,help:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients #: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " diff --git a/mail_optional_autofollow/i18n/it.po b/mail_optional_autofollow/i18n/it.po index 5d7b35f851..a8e0759a04 100644 --- a/mail_optional_autofollow/i18n/it.po +++ b/mail_optional_autofollow/i18n/it.po @@ -24,11 +24,13 @@ msgid "Email composition wizard" msgstr "Wizard Creazione Email" #. module: mail_optional_autofollow +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients #: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "Destinatari in Follower" #. module: mail_optional_autofollow +#: model:ir.model.fields,help:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients #: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " diff --git a/mail_optional_autofollow/i18n/pt_BR.po b/mail_optional_autofollow/i18n/pt_BR.po index cafe3edc12..a1008cc325 100644 --- a/mail_optional_autofollow/i18n/pt_BR.po +++ b/mail_optional_autofollow/i18n/pt_BR.po @@ -24,11 +24,13 @@ msgid "Email composition wizard" msgstr "Assistente de Composição de Email" #. module: mail_optional_autofollow +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients #: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "" #. module: mail_optional_autofollow +#: model:ir.model.fields,help:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients #: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " diff --git a/mail_optional_autofollow/i18n/sl.po b/mail_optional_autofollow/i18n/sl.po index 7d6aaf8864..05436720e8 100644 --- a/mail_optional_autofollow/i18n/sl.po +++ b/mail_optional_autofollow/i18n/sl.po @@ -26,11 +26,13 @@ msgid "Email composition wizard" msgstr "Čarovnik za sestavljanje e-pošte" #. module: mail_optional_autofollow +#: model:ir.model.fields,field_description:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients #: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "Prejemniki bodo sledilci" #. module: mail_optional_autofollow +#: model:ir.model.fields,help:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients #: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "" "if checked, the additional recipients will be added as followers on " From 2a930968ae9efd3a4858c87fbf369428ead3427e Mon Sep 17 00:00:00 2001 From: Karl Southern Date: Fri, 1 Apr 2022 13:09:06 +0100 Subject: [PATCH 26/27] [MIG] mail_optional_autofollow: Migration to 15.0 --- mail_optional_autofollow/__manifest__.py | 2 +- .../tests/test_mail_optional_autofollow.py | 10 +++++----- .../wizard/mail_compose_message.py | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mail_optional_autofollow/__manifest__.py b/mail_optional_autofollow/__manifest__.py index 8b168aaaab..af3457ddce 100644 --- a/mail_optional_autofollow/__manifest__.py +++ b/mail_optional_autofollow/__manifest__.py @@ -8,7 +8,7 @@ "author": "ACSONE SA/NV," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/social", "category": "Social Network", - "version": "13.0.1.0.0", + "version": "15.0.1.0.0", "license": "AGPL-3", "depends": ["mail"], "data": ["wizard/mail_compose_message_view.xml"], diff --git a/mail_optional_autofollow/tests/test_mail_optional_autofollow.py b/mail_optional_autofollow/tests/test_mail_optional_autofollow.py index 887a48c645..805fe643ab 100644 --- a/mail_optional_autofollow/tests/test_mail_optional_autofollow.py +++ b/mail_optional_autofollow/tests/test_mail_optional_autofollow.py @@ -21,13 +21,13 @@ def test_send_email_attachment(self): } ) mail_compose = self.env["mail.compose.message"] - values = mail_compose.with_context(ctx).onchange_template_id( + values = mail_compose.with_context(**ctx)._onchange_template_id( False, "comment", "res.partner", self.partner_01.id )["value"] values["partner_ids"] = [(4, self.partner_02.id)] - compose_id = mail_compose.with_context(ctx).create(values) + compose_id = mail_compose.with_context(**ctx).create(values) compose_id.autofollow_recipients = False - compose_id.with_context(ctx).send_mail() + compose_id.with_context(**ctx).action_send_mail() res = self.env["mail.followers"].search( [ ("res_model", "=", "res.partner"), @@ -37,9 +37,9 @@ def test_send_email_attachment(self): ) # I check if the recipient isn't a follower self.assertEqual(len(res.ids), 0) - compose_id = mail_compose.with_context(ctx).create(values) + compose_id = mail_compose.with_context(**ctx).create(values) compose_id.autofollow_recipients = True - compose_id.with_context(ctx).send_mail() + compose_id.with_context(**ctx).action_send_mail() res = self.env["mail.followers"].search( [ ("res_model", "=", "res.partner"), diff --git a/mail_optional_autofollow/wizard/mail_compose_message.py b/mail_optional_autofollow/wizard/mail_compose_message.py index 8b3dd082bf..665364cc02 100644 --- a/mail_optional_autofollow/wizard/mail_compose_message.py +++ b/mail_optional_autofollow/wizard/mail_compose_message.py @@ -21,10 +21,10 @@ def default_get(self, fields_list): followers on the related object""", ) - def send_mail(self, auto_commit=False): + def _action_send_mail(self, auto_commit=False): for wizard in self: super( MailComposeMessage, wizard.with_context(mail_post_autofollow=wizard.autofollow_recipients), - ).send_mail(auto_commit=auto_commit) + )._action_send_mail(auto_commit=auto_commit) return True From 001c95616b10c3210295e835b95e05cd1315afd4 Mon Sep 17 00:00:00 2001 From: Benoit Aimont Date: Tue, 23 Aug 2022 14:51:48 +0200 Subject: [PATCH 27/27] [MIG] mail_optional_autofollow: Migration to 16.0 --- mail_optional_autofollow/__manifest__.py | 2 +- .../wizard/mail_compose_message.py | 10 ++++++++-- .../odoo/addons/mail_optional_autofollow | 1 + setup/mail_optional_autofollow/setup.py | 6 ++++++ 4 files changed, 16 insertions(+), 3 deletions(-) create mode 120000 setup/mail_optional_autofollow/odoo/addons/mail_optional_autofollow create mode 100644 setup/mail_optional_autofollow/setup.py diff --git a/mail_optional_autofollow/__manifest__.py b/mail_optional_autofollow/__manifest__.py index af3457ddce..7d0917adb7 100644 --- a/mail_optional_autofollow/__manifest__.py +++ b/mail_optional_autofollow/__manifest__.py @@ -8,7 +8,7 @@ "author": "ACSONE SA/NV," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/social", "category": "Social Network", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "license": "AGPL-3", "depends": ["mail"], "data": ["wizard/mail_compose_message_view.xml"], diff --git a/mail_optional_autofollow/wizard/mail_compose_message.py b/mail_optional_autofollow/wizard/mail_compose_message.py index 665364cc02..b8f7d1b7cb 100644 --- a/mail_optional_autofollow/wizard/mail_compose_message.py +++ b/mail_optional_autofollow/wizard/mail_compose_message.py @@ -22,9 +22,15 @@ def default_get(self, fields_list): ) def _action_send_mail(self, auto_commit=False): + result_mails_su, result_messages = ( + self.env["mail.mail"].sudo(), + self.env["mail.message"], + ) for wizard in self: - super( + result_mails_su_wizard, result_messages_wizard = super( MailComposeMessage, wizard.with_context(mail_post_autofollow=wizard.autofollow_recipients), )._action_send_mail(auto_commit=auto_commit) - return True + result_mails_su += result_mails_su_wizard + result_messages += result_messages_wizard + return result_mails_su, result_messages diff --git a/setup/mail_optional_autofollow/odoo/addons/mail_optional_autofollow b/setup/mail_optional_autofollow/odoo/addons/mail_optional_autofollow new file mode 120000 index 0000000000..382ffdb7d7 --- /dev/null +++ b/setup/mail_optional_autofollow/odoo/addons/mail_optional_autofollow @@ -0,0 +1 @@ +../../../../mail_optional_autofollow \ No newline at end of file diff --git a/setup/mail_optional_autofollow/setup.py b/setup/mail_optional_autofollow/setup.py new file mode 100644 index 0000000000..28c57bb640 --- /dev/null +++ b/setup/mail_optional_autofollow/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)