From 5679b8ef81d8d1bf3bfeb0e60f7139d943db94b8 Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Fri, 18 Mar 2016 18:03:32 +0100 Subject: [PATCH 01/44] [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 000000000..3223d7480 --- /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 000000000..095712720 --- /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 000000000..a34fc6afe --- /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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5WzI}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(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sJYT(#@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 000000000..3667d24bd --- /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 000000000..953c1a31a --- /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 000000000..c82500c9b --- /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 000000000..a36b6b03f --- /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 000000000..0bb7eacbb --- /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 663aa83124f42dd94b1206b755d4bdee90b71deb Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Mon, 4 Apr 2016 20:58:03 +0200 Subject: [PATCH 02/44] [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 3223d7480..cc74075db 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 a36b6b03f..912a3d913 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 bf37785534c9eb3659d8089922b1070038fff0b1 Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Tue, 5 Apr 2016 08:30:29 +0200 Subject: [PATCH 03/44] [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 cc74075db..08dd7a723 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 a34fc6afe..531dab27a 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 9f3d2d19c989ee1cde1c4150f99f18c36335ae24 Mon Sep 17 00:00:00 2001 From: "Laurent Mignon (ACSONE)" Date: Wed, 25 May 2016 13:47:32 +0200 Subject: [PATCH 04/44] [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 08dd7a723..7d2cb9460 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 531dab27a..abd3f76b6 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 953c1a31a..b583af2a7 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 d64ad527cc96225bd9d77b6860070016add6a950 Mon Sep 17 00:00:00 2001 From: "Laurent Mignon (ACSONE)" Date: Mon, 6 Jun 2016 14:39:49 +0200 Subject: [PATCH 05/44] [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 000000000..70fe0208e --- /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 31d57210edb924ab29b4e8c19c827dac1895dd72 Mon Sep 17 00:00:00 2001 From: Thomas Binsfeld Date: Fri, 19 Aug 2016 09:47:08 +0200 Subject: [PATCH 06/44] [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 912a3d913..d7e6c3991 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 af10badce1e9a3785c8da9e29e5f8c6b86045032 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Thu, 6 Oct 2016 16:08:38 +0200 Subject: [PATCH 07/44] [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 abd3f76b6..e2f7769a9 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 0b092948c62b33db40bd32bec5a2c261fddfb3bd Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Thu, 6 Oct 2016 16:08:42 +0200 Subject: [PATCH 08/44] [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 ee0663e13806fd7ca823e3300424fcc234332146 Mon Sep 17 00:00:00 2001 From: Damien Bouvy Date: Fri, 14 Oct 2016 19:32:46 +0200 Subject: [PATCH 09/44] [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 7d2cb9460..ceb453120 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 e2f7769a9..79626aa64 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 d7e6c3991..442c1725e 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 0bb7eacbb..e21a29558 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 54bd4afb15a78f05caf14e37bea8d2b0164b9962 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sun, 17 Apr 2016 09:01:17 -0400 Subject: [PATCH 10/44] 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 000000000..d5748082c --- /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 000000000..c2cc1036f --- /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 000000000..dc04d6ad1 --- /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 000000000..0659cee11 --- /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 70fe0208e..b30a8a4a1 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 000000000..2c0087628 --- /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 000000000..6523691d6 --- /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 000000000..d72d30b7c --- /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 000000000..9b86623c5 --- /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 92138bc20b817c64872a9d41c9eed9b6416214fc Mon Sep 17 00:00:00 2001 From: Damien Carlier Date: Wed, 15 Nov 2017 14:34:53 +0100 Subject: [PATCH 11/44] [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 79626aa64..6d155946a 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 b583af2a7..7814d7486 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 2a93e6cc2b544db44cbb4068baf067124eddef15 Mon Sep 17 00:00:00 2001 From: Damien Carlier Date: Thu, 7 Dec 2017 10:57:39 +0100 Subject: [PATCH 12/44] 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 ceb453120..6dcafdfda 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 311098748290e4030c8b90f093262c884c1e8015 Mon Sep 17 00:00:00 2001 From: "Denis Robinet (ACSONE)" Date: Mon, 4 Dec 2017 17:21:55 +0100 Subject: [PATCH 13/44] [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 e21a29558..e388b4931 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 c11f6caed5a1607b2dea501b3f91e2b5b895f78e Mon Sep 17 00:00:00 2001 From: Damien Carlier Date: Tue, 12 Jun 2018 09:56:33 +0200 Subject: [PATCH 14/44] [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 095712720..9e1c952a8 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 6d155946a..1bfea141c 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 3667d24bd..f0cef833f 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 7814d7486..f2c253c01 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 c82500c9b..660d786ae 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 442c1725e..5ef894579 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 a911100855185b4f18c3b3d80bc836b2a74c468f Mon Sep 17 00:00:00 2001 From: Damien Carlier Date: Tue, 12 Jun 2018 09:58:14 +0200 Subject: [PATCH 15/44] [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 9e1c952a8..40272379f 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 f0cef833f..dd099352b 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 660d786ae..b528d997d 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 2e067068c3542c1a87ccefff39c62538dc8325a1 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Thu, 29 Nov 2018 08:31:23 +0000 Subject: [PATCH 16/44] [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 d5748082c..24ca56ec0 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 c2cc1036f..7485660d0 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 dc04d6ad1..383e04f06 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 0659cee11..ad0cee832 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 b30a8a4a1..64ad08562 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 2c0087628..18ed63a3d 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 6523691d6..ec6f3bc2b 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 000000000..4bd676b32 --- /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 d72d30b7c..eb6bbcd21 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 9b86623c5..ccfab1a6c 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 6407e41274a30ae54684b54399c2f04a3a1bbd11 Mon Sep 17 00:00:00 2001 From: Maria Sparenberg Date: Fri, 14 Dec 2018 14:30:57 +0000 Subject: [PATCH 17/44] 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 7485660d0..91684d2c7 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 ffd132774aa7cbc54623d7025ddf7713c487556d Mon Sep 17 00:00:00 2001 From: "laurent.corron" Date: Wed, 6 Nov 2019 11:37:46 +0100 Subject: [PATCH 18/44] [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 1bfea141c..503e5ee8c 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 f2c253c01..887a48c64 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 5ef894579..853b671e8 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 e388b4931..a5ff80d25 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 e072091e38b76c6ddf8d57b4fe73a1ff0b845677 Mon Sep 17 00:00:00 2001 From: "laurent.corron" Date: Wed, 6 Nov 2019 11:37:46 +0100 Subject: [PATCH 19/44] [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 503e5ee8c..7536d3473 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 853b671e8..8b3dd082b 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 e42df6bff53dd95bec8859c1807eef2ecd96f783 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Wed, 4 Dec 2019 07:41:46 +0000 Subject: [PATCH 20/44] [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 4bd676b32..e3524a607 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 1311fc75ab32560e9060ce03009ba21745fde7f5 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Wed, 15 Jan 2020 09:25:34 +0000 Subject: [PATCH 21/44] 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 24ca56ec0..41a58a077 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 91684d2c7..45d199bb9 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 383e04f06..d1a0fa03f 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 ad0cee832..fe117459b 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 64ad08562..54a32ced1 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 18ed63a3d..c89c67579 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 ec6f3bc2b..5d7b35f85 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 eb6bbcd21..cafe3edc1 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 ccfab1a6c..7d6aaf886 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 bc06a2f85f6b33dd8930bae6d3e6a597272a8149 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Tue, 26 Jan 2021 14:06:17 +0000 Subject: [PATCH 22/44] [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 a5ff80d25..8899f9a27 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 80411980e15d7df7ada0a3870f0ec87336944f48 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/44] [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 7536d3473..8b168aaaa 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 b72f1a125c55f1030496d448cdacbef645b0852d Mon Sep 17 00:00:00 2001 From: oca-travis Date: Thu, 11 Nov 2021 11:52:35 +0000 Subject: [PATCH 24/44] [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 e3524a607..d609828d8 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 da19ba21ab3112ce517c117a669331510eb9307d Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Thu, 11 Nov 2021 12:05:33 +0000 Subject: [PATCH 25/44] 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 41a58a077..269c59290 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 45d199bb9..c01849465 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 d1a0fa03f..b5880cec1 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 fe117459b..4eafbc14a 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 54a32ced1..28161a6fc 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 c89c67579..b70cfb3c6 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 5d7b35f85..a8e0759a0 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 cafe3edc1..a1008cc32 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 7d6aaf886..05436720e 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 85ee142c3afd62e8b1d2e86f8f5c27e1303aafc3 Mon Sep 17 00:00:00 2001 From: Karl Southern Date: Fri, 1 Apr 2022 13:09:06 +0100 Subject: [PATCH 26/44] [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 8b168aaaa..af3457ddc 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 887a48c64..805fe643a 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 8b3dd082b..665364cc0 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 bdb309b9c737f8898d76cea3e0a87b0ebcd92927 Mon Sep 17 00:00:00 2001 From: Benoit Aimont Date: Tue, 23 Aug 2022 14:51:48 +0200 Subject: [PATCH 27/44] [MIG] mail_optional_autofollow: Migration to 16.0 --- mail_optional_autofollow/__manifest__.py | 2 +- .../wizard/mail_compose_message.py | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/mail_optional_autofollow/__manifest__.py b/mail_optional_autofollow/__manifest__.py index af3457ddc..7d0917adb 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 665364cc0..b8f7d1b7c 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 From f743a8accf3c5ad356fa226210a17d3efa25b4af Mon Sep 17 00:00:00 2001 From: oca-ci Date: Fri, 30 Dec 2022 15:24:13 +0000 Subject: [PATCH 28/44] [UPD] Update mail_optional_autofollow.pot --- mail_optional_autofollow/i18n/mail_optional_autofollow.pot | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mail_optional_autofollow/i18n/mail_optional_autofollow.pot b/mail_optional_autofollow/i18n/mail_optional_autofollow.pot index d609828d8..34fc4d566 100644 --- a/mail_optional_autofollow/i18n/mail_optional_autofollow.pot +++ b/mail_optional_autofollow/i18n/mail_optional_autofollow.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 13.0\n" +"Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -19,13 +19,11 @@ 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 4b9eb832456283728684d341647c599a3d893690 Mon Sep 17 00:00:00 2001 From: Weblate Date: Fri, 30 Dec 2022 15:56:50 +0000 Subject: [PATCH 29/44] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: social-16.0/social-16.0-mail_optional_autofollow Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-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 deletions(-) diff --git a/mail_optional_autofollow/i18n/ca.po b/mail_optional_autofollow/i18n/ca.po index 269c59290..41a58a077 100644 --- a/mail_optional_autofollow/i18n/ca.po +++ b/mail_optional_autofollow/i18n/ca.po @@ -24,13 +24,11 @@ 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 c01849465..45d199bb9 100644 --- a/mail_optional_autofollow/i18n/de.po +++ b/mail_optional_autofollow/i18n/de.po @@ -25,13 +25,11 @@ 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 b5880cec1..d1a0fa03f 100644 --- a/mail_optional_autofollow/i18n/es.po +++ b/mail_optional_autofollow/i18n/es.po @@ -24,13 +24,11 @@ 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 4eafbc14a..fe117459b 100644 --- a/mail_optional_autofollow/i18n/es_CO.po +++ b/mail_optional_autofollow/i18n/es_CO.po @@ -24,13 +24,11 @@ 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 28161a6fc..54a32ced1 100644 --- a/mail_optional_autofollow/i18n/fr.po +++ b/mail_optional_autofollow/i18n/fr.po @@ -24,13 +24,11 @@ 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 b70cfb3c6..c89c67579 100644 --- a/mail_optional_autofollow/i18n/hr.po +++ b/mail_optional_autofollow/i18n/hr.po @@ -26,13 +26,11 @@ 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 a8e0759a0..5d7b35f85 100644 --- a/mail_optional_autofollow/i18n/it.po +++ b/mail_optional_autofollow/i18n/it.po @@ -24,13 +24,11 @@ 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 a1008cc32..cafe3edc1 100644 --- a/mail_optional_autofollow/i18n/pt_BR.po +++ b/mail_optional_autofollow/i18n/pt_BR.po @@ -24,13 +24,11 @@ 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 05436720e..7d6aaf886 100644 --- a/mail_optional_autofollow/i18n/sl.po +++ b/mail_optional_autofollow/i18n/sl.po @@ -26,13 +26,11 @@ 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 e1fe43bf2f1197b50ec6b5ab357b38b48bd0fcc2 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Wed, 18 Oct 2023 09:52:27 +0000 Subject: [PATCH 30/44] [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 34fc4d566..3d4e10808 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 f74cb9471596de6942ccfbcc4fbc09570d246762 Mon Sep 17 00:00:00 2001 From: Weblate Date: Wed, 18 Oct 2023 10:03:06 +0000 Subject: [PATCH 31/44] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: social-16.0/social-16.0-mail_optional_autofollow Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-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 41a58a077..269c59290 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 45d199bb9..c01849465 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 d1a0fa03f..b5880cec1 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 fe117459b..4eafbc14a 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 54a32ced1..28161a6fc 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 c89c67579..b70cfb3c6 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 5d7b35f85..a8e0759a0 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 cafe3edc1..a1008cc32 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 7d6aaf886..05436720e 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 29a439a7680343f8f275b849f2e89c69113fee67 Mon Sep 17 00:00:00 2001 From: Ivorra78 Date: Tue, 9 Jan 2024 17:53:24 +0000 Subject: [PATCH 32/44] Translated using Weblate (Spanish) Currently translated at 100.0% (3 of 3 strings) Translation: social-16.0/social-16.0-mail_optional_autofollow Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_optional_autofollow/es/ --- mail_optional_autofollow/i18n/es.po | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mail_optional_autofollow/i18n/es.po b/mail_optional_autofollow/i18n/es.po index b5880cec1..d28926d93 100644 --- a/mail_optional_autofollow/i18n/es.po +++ b/mail_optional_autofollow/i18n/es.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: 2024-01-09 20:34+0000\n" +"Last-Translator: Ivorra78 \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" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" #. module: mail_optional_autofollow #: model:ir.model,name:mail_optional_autofollow.model_mail_compose_message @@ -27,7 +28,7 @@ msgstr "Asistente composición Correo Electrónico" #: 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 "" +msgstr "Hacer seguidores a destinatarios" #. module: mail_optional_autofollow #: model:ir.model.fields,help:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients @@ -36,3 +37,5 @@ msgid "" "if checked, the additional recipients will be added as followers on " "the related object" msgstr "" +"si está marcada, los destinatarios adicionales se añadirán " +"como seguidores en el objeto relacionado" From dd16e617d4674f52869c29ed3b39e25da6e78de6 Mon Sep 17 00:00:00 2001 From: mymage Date: Thu, 11 Jan 2024 07:50:16 +0000 Subject: [PATCH 33/44] Translated using Weblate (Italian) Currently translated at 100.0% (3 of 3 strings) Translation: social-16.0/social-16.0-mail_optional_autofollow Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_optional_autofollow/it/ --- mail_optional_autofollow/i18n/it.po | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mail_optional_autofollow/i18n/it.po b/mail_optional_autofollow/i18n/it.po index a8e0759a0..438c982b2 100644 --- a/mail_optional_autofollow/i18n/it.po +++ b/mail_optional_autofollow/i18n/it.po @@ -9,19 +9,20 @@ 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" +"PO-Revision-Date: 2024-01-11 08:06+0000\n" +"Last-Translator: mymage \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" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" #. module: mail_optional_autofollow #: model:ir.model,name:mail_optional_autofollow.model_mail_compose_message msgid "Email composition wizard" -msgstr "Wizard Creazione Email" +msgstr "Procedura guidata creazione e-mail" #. module: mail_optional_autofollow #: model:ir.model.fields,field_description:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients @@ -36,5 +37,5 @@ 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." +"Se selezionata, i destinatari aggiuntivi verranno aggiunti a chi " +"segue questo documento." From 0c58966ca03a7064ebd159a6b81909886bac5a6e Mon Sep 17 00:00:00 2001 From: mymage Date: Mon, 5 Feb 2024 07:08:15 +0000 Subject: [PATCH 34/44] Translated using Weblate (Italian) Currently translated at 100.0% (3 of 3 strings) Translation: social-16.0/social-16.0-mail_optional_autofollow Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_optional_autofollow/it/ --- mail_optional_autofollow/i18n/it.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail_optional_autofollow/i18n/it.po b/mail_optional_autofollow/i18n/it.po index 438c982b2..f93e077ab 100644 --- a/mail_optional_autofollow/i18n/it.po +++ b/mail_optional_autofollow/i18n/it.po @@ -9,7 +9,7 @@ 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: 2024-01-11 08:06+0000\n" +"PO-Revision-Date: 2024-02-05 09:41+0000\n" "Last-Translator: mymage \n" "Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" "Language: it\n" @@ -38,4 +38,4 @@ msgid "" "the related object" msgstr "" "Se selezionata, i destinatari aggiuntivi verranno aggiunti a chi " -"segue questo documento." +"segue questo documento" From 9b090ab4a5983e0ecc24e0a3249e2112ba8891d0 Mon Sep 17 00:00:00 2001 From: Rodrigo Macedo Date: Wed, 22 May 2024 11:49:43 +0000 Subject: [PATCH 35/44] Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (3 of 3 strings) Translation: social-16.0/social-16.0-mail_optional_autofollow Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_optional_autofollow/pt_BR/ --- mail_optional_autofollow/i18n/pt_BR.po | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/mail_optional_autofollow/i18n/pt_BR.po b/mail_optional_autofollow/i18n/pt_BR.po index a1008cc32..079335fd0 100644 --- a/mail_optional_autofollow/i18n/pt_BR.po +++ b/mail_optional_autofollow/i18n/pt_BR.po @@ -8,15 +8,17 @@ 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" +"PO-Revision-Date: 2024-05-22 14:35+0000\n" +"Last-Translator: Rodrigo Macedo \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" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 4.17\n" #. module: mail_optional_autofollow #: model:ir.model,name:mail_optional_autofollow.model_mail_compose_message @@ -27,7 +29,7 @@ msgstr "Assistente de Composição de Email" #: 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 "" +msgstr "Torne os destinatários seguidores" #. module: mail_optional_autofollow #: model:ir.model.fields,help:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients @@ -36,3 +38,5 @@ msgid "" "if checked, the additional recipients will be added as followers on " "the related object" msgstr "" +"se marcada, os destinatários adicionais serão adicionados como " +"seguidores no objeto relacionado" From 507696dec3aa4795bf02aa4966f3ae4ccd891005 Mon Sep 17 00:00:00 2001 From: mymage Date: Thu, 13 Jun 2024 13:24:12 +0000 Subject: [PATCH 36/44] Translated using Weblate (Italian) Currently translated at 100.0% (3 of 3 strings) Translation: social-16.0/social-16.0-mail_optional_autofollow Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_optional_autofollow/it/ --- mail_optional_autofollow/i18n/it.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail_optional_autofollow/i18n/it.po b/mail_optional_autofollow/i18n/it.po index f93e077ab..7f567add7 100644 --- a/mail_optional_autofollow/i18n/it.po +++ b/mail_optional_autofollow/i18n/it.po @@ -9,7 +9,7 @@ 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: 2024-02-05 09:41+0000\n" +"PO-Revision-Date: 2024-06-13 13:36+0000\n" "Last-Translator: mymage \n" "Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" "Language: it\n" @@ -28,7 +28,7 @@ msgstr "Procedura guidata creazione e-mail" #: 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" +msgstr "Converti destinatari in chi segue" #. module: mail_optional_autofollow #: model:ir.model.fields,help:mail_optional_autofollow.field_account_invoice_send__autofollow_recipients From 6f09971e8dce8ea126f1cc88f276aa3fb89c968a Mon Sep 17 00:00:00 2001 From: oca-ci Date: Fri, 8 Nov 2024 12:50:10 +0000 Subject: [PATCH 37/44] [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 3d4e10808..c1ce1e20a 100644 --- a/mail_optional_autofollow/i18n/mail_optional_autofollow.pot +++ b/mail_optional_autofollow/i18n/mail_optional_autofollow.pot @@ -20,12 +20,14 @@ 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_gateway_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_account_invoice_send__autofollow_recipients +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_gateway_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 " From 03b1385bd8f36b7fefca74845e06ff7da1493e4d Mon Sep 17 00:00:00 2001 From: Weblate Date: Fri, 8 Nov 2024 12:54:55 +0000 Subject: [PATCH 38/44] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: social-16.0/social-16.0-mail_optional_autofollow Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-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 | 6 ++++-- mail_optional_autofollow/i18n/it.po | 2 ++ mail_optional_autofollow/i18n/pt_BR.po | 6 ++++-- mail_optional_autofollow/i18n/sl.po | 6 ++++-- 9 files changed, 24 insertions(+), 6 deletions(-) diff --git a/mail_optional_autofollow/i18n/ca.po b/mail_optional_autofollow/i18n/ca.po index 269c59290..aeff23ead 100644 --- a/mail_optional_autofollow/i18n/ca.po +++ b/mail_optional_autofollow/i18n/ca.po @@ -25,12 +25,14 @@ 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_gateway_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_account_invoice_send__autofollow_recipients +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_gateway_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 " diff --git a/mail_optional_autofollow/i18n/de.po b/mail_optional_autofollow/i18n/de.po index c01849465..1e57838b8 100644 --- a/mail_optional_autofollow/i18n/de.po +++ b/mail_optional_autofollow/i18n/de.po @@ -26,12 +26,14 @@ 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_gateway_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_account_invoice_send__autofollow_recipients +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_gateway_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 " diff --git a/mail_optional_autofollow/i18n/es.po b/mail_optional_autofollow/i18n/es.po index d28926d93..edde3cff0 100644 --- a/mail_optional_autofollow/i18n/es.po +++ b/mail_optional_autofollow/i18n/es.po @@ -26,12 +26,14 @@ 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_gateway_message__autofollow_recipients #: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "Hacer seguidores a destinatarios" #. 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_gateway_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 " diff --git a/mail_optional_autofollow/i18n/es_CO.po b/mail_optional_autofollow/i18n/es_CO.po index 4eafbc14a..2042a255e 100644 --- a/mail_optional_autofollow/i18n/es_CO.po +++ b/mail_optional_autofollow/i18n/es_CO.po @@ -25,12 +25,14 @@ 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_gateway_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_account_invoice_send__autofollow_recipients +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_gateway_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 " diff --git a/mail_optional_autofollow/i18n/fr.po b/mail_optional_autofollow/i18n/fr.po index 28161a6fc..e472fe814 100644 --- a/mail_optional_autofollow/i18n/fr.po +++ b/mail_optional_autofollow/i18n/fr.po @@ -25,12 +25,14 @@ 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_gateway_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_account_invoice_send__autofollow_recipients +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_gateway_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 " diff --git a/mail_optional_autofollow/i18n/hr.po b/mail_optional_autofollow/i18n/hr.po index b70cfb3c6..0ddcb2862 100644 --- a/mail_optional_autofollow/i18n/hr.po +++ b/mail_optional_autofollow/i18n/hr.po @@ -17,8 +17,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \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 @@ -27,12 +27,14 @@ 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_gateway_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_account_invoice_send__autofollow_recipients +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_gateway_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 " diff --git a/mail_optional_autofollow/i18n/it.po b/mail_optional_autofollow/i18n/it.po index 7f567add7..74477399f 100644 --- a/mail_optional_autofollow/i18n/it.po +++ b/mail_optional_autofollow/i18n/it.po @@ -26,12 +26,14 @@ msgstr "Procedura guidata creazione 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_gateway_message__autofollow_recipients #: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "Converti destinatari in chi segue" #. 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_gateway_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 " diff --git a/mail_optional_autofollow/i18n/pt_BR.po b/mail_optional_autofollow/i18n/pt_BR.po index 079335fd0..fa3142306 100644 --- a/mail_optional_autofollow/i18n/pt_BR.po +++ b/mail_optional_autofollow/i18n/pt_BR.po @@ -11,8 +11,8 @@ msgstr "" "PO-Revision-Date: 2024-05-22 14:35+0000\n" "Last-Translator: Rodrigo Macedo \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" @@ -27,12 +27,14 @@ 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_gateway_message__autofollow_recipients #: model:ir.model.fields,field_description:mail_optional_autofollow.field_mail_compose_message__autofollow_recipients msgid "Make recipients followers" msgstr "Torne os destinatários seguidores" #. 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_gateway_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 " diff --git a/mail_optional_autofollow/i18n/sl.po b/mail_optional_autofollow/i18n/sl.po index 05436720e..057dce2ba 100644 --- a/mail_optional_autofollow/i18n/sl.po +++ b/mail_optional_autofollow/i18n/sl.po @@ -17,8 +17,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \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 @@ -27,12 +27,14 @@ 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_gateway_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_account_invoice_send__autofollow_recipients +#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_gateway_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 " From 30be958a57a1ef0335f709237f56a070b5fdc787 Mon Sep 17 00:00:00 2001 From: Bhavesh Heliconia Date: Wed, 5 Feb 2025 16:22:33 +0530 Subject: [PATCH 39/44] [IMP] mail_optional_autofollow: pre-commit auto fixes --- mail_optional_autofollow/__manifest__.py | 2 +- mail_optional_autofollow/pyproject.toml | 3 +++ .../tests/test_mail_optional_autofollow.py | 2 +- mail_optional_autofollow/wizard/mail_compose_message.py | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 mail_optional_autofollow/pyproject.toml diff --git a/mail_optional_autofollow/__manifest__.py b/mail_optional_autofollow/__manifest__.py index 7d0917adb..090729e90 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": "https://github.com/OCA/social", + "website": "https://github.com/OCA/mail", "category": "Social Network", "version": "16.0.1.0.0", "license": "AGPL-3", diff --git a/mail_optional_autofollow/pyproject.toml b/mail_optional_autofollow/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/mail_optional_autofollow/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/mail_optional_autofollow/tests/test_mail_optional_autofollow.py b/mail_optional_autofollow/tests/test_mail_optional_autofollow.py index 805fe643a..ebd756fc2 100644 --- a/mail_optional_autofollow/tests/test_mail_optional_autofollow.py +++ b/mail_optional_autofollow/tests/test_mail_optional_autofollow.py @@ -6,7 +6,7 @@ class TestAttachExistingAttachment(common.TransactionCase): def setUp(self): - super(TestAttachExistingAttachment, self).setUp() + super().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") diff --git a/mail_optional_autofollow/wizard/mail_compose_message.py b/mail_optional_autofollow/wizard/mail_compose_message.py index b8f7d1b7c..4ce180957 100644 --- a/mail_optional_autofollow/wizard/mail_compose_message.py +++ b/mail_optional_autofollow/wizard/mail_compose_message.py @@ -9,7 +9,7 @@ class MailComposeMessage(models.TransientModel): @api.model def default_get(self, fields_list): - res = super(MailComposeMessage, self).default_get(fields_list) + res = super().default_get(fields_list) res.setdefault( "autofollow_recipients", self.env.context.get("mail_post_autofollow", False) ) From 54dd4f88322116644aa78f81bae6d89edbef2f43 Mon Sep 17 00:00:00 2001 From: Bhavesh Heliconia Date: Wed, 5 Feb 2025 16:26:32 +0530 Subject: [PATCH 40/44] [MIG] mail_optional_autofollow: Migration to 18.0 --- mail_optional_autofollow/README.rst | 98 ++-- mail_optional_autofollow/__manifest__.py | 2 +- .../readme/CONTRIBUTORS.md | 4 + mail_optional_autofollow/readme/CREDITS.md | 3 + .../readme/DESCRIPTION.md | 1 + mail_optional_autofollow/readme/USAGE.md | 5 + .../static/description/index.html | 446 ++++++++++++++++++ .../tests/test_mail_optional_autofollow.py | 27 +- .../wizard/mail_compose_message_view.xml | 2 +- 9 files changed, 533 insertions(+), 55 deletions(-) create mode 100644 mail_optional_autofollow/readme/CONTRIBUTORS.md create mode 100644 mail_optional_autofollow/readme/CREDITS.md create mode 100644 mail_optional_autofollow/readme/DESCRIPTION.md create mode 100644 mail_optional_autofollow/readme/USAGE.md create mode 100644 mail_optional_autofollow/static/description/index.html diff --git a/mail_optional_autofollow/README.rst b/mail_optional_autofollow/README.rst index 6dcafdfda..5e86af54a 100644 --- a/mail_optional_autofollow/README.rst +++ b/mail_optional_autofollow/README.rst @@ -1,85 +1,101 @@ -.. 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 ======================== +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:3aebbde0a044037526dd7911c3501be9a90b586a8d82233b3e341adeaed5e71c + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmail-lightgray.png?logo=github + :target: https://github.com/OCA/mail/tree/18.0/mail_optional_autofollow + :alt: OCA/mail +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/mail-18-0/mail-18-0-mail_optional_autofollow + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/mail&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + This module adds the possibility to choose if you want to automatically add new recipients as followers on mail.compose.message. -Installation -============ - - -Configuration -============= +**Table of contents** +.. contents:: + :local: 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 +'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/11.0 - -Known issues / Roadmap -====================== +|autofollow.png| +.. |autofollow.png| image:: https://raw.githubusercontent.com/OCA/mail/18.0/mail_optional_autofollow/static/description/autofollow.png 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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. Credits ======= -Images ------- +Authors +------- -* Odoo Community Association: `Icon `_. +* ACSONE SA/NV Contributors ------------ -* Adrien Peiffer -* Stéphane Bidoul +- Adrien Peiffer adrien.peiffer@acsone.eu +- Stéphane Bidoul stephane.bidoul@acsone.eu +- `Heliconia Solutions Pvt. Ltd. `__ -Do not contact contributors directly about support or help with technical issues. + - Bhavesh Heliconia -Funders -------- +Other credits +------------- The development of this module has been financially supported by: -* Acsone +- ACSONE SA/NV + +Maintainers +----------- -Maintainer ----------- +This module is maintained by the OCA. .. 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. +This module is part of the `OCA/mail `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mail_optional_autofollow/__manifest__.py b/mail_optional_autofollow/__manifest__.py index 090729e90..1da7e10e2 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/mail", "category": "Social Network", - "version": "16.0.1.0.0", + "version": "18.0.1.0.0", "license": "AGPL-3", "depends": ["mail"], "data": ["wizard/mail_compose_message_view.xml"], diff --git a/mail_optional_autofollow/readme/CONTRIBUTORS.md b/mail_optional_autofollow/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..244db1830 --- /dev/null +++ b/mail_optional_autofollow/readme/CONTRIBUTORS.md @@ -0,0 +1,4 @@ +- Adrien Peiffer adrien.peiffer@acsone.eu +- Stéphane Bidoul stephane.bidoul@acsone.eu +- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io) + - Bhavesh Heliconia diff --git a/mail_optional_autofollow/readme/CREDITS.md b/mail_optional_autofollow/readme/CREDITS.md new file mode 100644 index 000000000..a82bbeb2e --- /dev/null +++ b/mail_optional_autofollow/readme/CREDITS.md @@ -0,0 +1,3 @@ +The development of this module has been financially supported by: + +* ACSONE SA/NV diff --git a/mail_optional_autofollow/readme/DESCRIPTION.md b/mail_optional_autofollow/readme/DESCRIPTION.md new file mode 100644 index 000000000..7d9c3dc2a --- /dev/null +++ b/mail_optional_autofollow/readme/DESCRIPTION.md @@ -0,0 +1 @@ +This module adds the possibility to choose if you want to automatically add new recipients as followers on mail.compose.message. diff --git a/mail_optional_autofollow/readme/USAGE.md b/mail_optional_autofollow/readme/USAGE.md new file mode 100644 index 000000000..f48e50b02 --- /dev/null +++ b/mail_optional_autofollow/readme/USAGE.md @@ -0,0 +1,5 @@ +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 + +![autofollow.png](../static/description/autofollow.png) diff --git a/mail_optional_autofollow/static/description/index.html b/mail_optional_autofollow/static/description/index.html new file mode 100644 index 000000000..e047be5de --- /dev/null +++ b/mail_optional_autofollow/static/description/index.html @@ -0,0 +1,446 @@ + + + + + +Mail optional autofollow + + + +
+

Mail optional autofollow

+ + +

Beta License: AGPL-3 OCA/mail Translate me on Weblate Try me on Runboat

+

This module adds the possibility to choose if you want to automatically +add new recipients as followers on mail.compose.message.

+

Table of contents

+ +
+

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 a +‘mail_post_autofollow’ key in the current context

+

autofollow.png

+
+
+

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

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • ACSONE SA/NV
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+

The development of this module has been financially supported by:

+
    +
  • ACSONE SA/NV
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/mail project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/mail_optional_autofollow/tests/test_mail_optional_autofollow.py b/mail_optional_autofollow/tests/test_mail_optional_autofollow.py index ebd756fc2..91862033c 100644 --- a/mail_optional_autofollow/tests/test_mail_optional_autofollow.py +++ b/mail_optional_autofollow/tests/test_mail_optional_autofollow.py @@ -1,30 +1,33 @@ # Copyright 2016 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo.tests import common +from odoo import Command +from odoo.addons.base.tests.common import BaseCommon -class TestAttachExistingAttachment(common.TransactionCase): - def setUp(self): - super().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") + +class TestAttachExistingAttachment(BaseCommon): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.partner_obj = cls.env["res.partner"] + cls.partner_01 = cls.env.ref("base.res_partner_10") + cls.partner_02 = cls.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_res_ids": self.partner_01.ids, "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)] + values = { + "partner_ids": [Command.link(self.partner_02.id)], + "composition_mode": "comment", + } compose_id = mail_compose.with_context(**ctx).create(values) compose_id.autofollow_recipients = False compose_id.with_context(**ctx).action_send_mail() diff --git a/mail_optional_autofollow/wizard/mail_compose_message_view.xml b/mail_optional_autofollow/wizard/mail_compose_message_view.xml index 8899f9a27..29572d9c0 100644 --- a/mail_optional_autofollow/wizard/mail_compose_message_view.xml +++ b/mail_optional_autofollow/wizard/mail_compose_message_view.xml @@ -8,7 +8,7 @@ From 77a108f62fb54720a98782fffea182e533a30095 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Thu, 16 Oct 2025 06:45:51 +0000 Subject: [PATCH 41/44] [UPD] Update mail_optional_autofollow.pot --- mail_optional_autofollow/i18n/mail_optional_autofollow.pot | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mail_optional_autofollow/i18n/mail_optional_autofollow.pot b/mail_optional_autofollow/i18n/mail_optional_autofollow.pot index c1ce1e20a..4e5433286 100644 --- a/mail_optional_autofollow/i18n/mail_optional_autofollow.pot +++ b/mail_optional_autofollow/i18n/mail_optional_autofollow.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 16.0\n" +"Project-Id-Version: Odoo Server 18.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -19,15 +19,11 @@ 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_gateway_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_account_invoice_send__autofollow_recipients -#: model:ir.model.fields,help:mail_optional_autofollow.field_mail_compose_gateway_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 " From 4d6c0adaf3a1ccc52625093c16c161c390357780 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 16 Oct 2025 06:49:44 +0000 Subject: [PATCH 42/44] [BOT] post-merge updates --- mail_optional_autofollow/README.rst | 8 +++-- .../static/description/index.html | 30 +++++++++++-------- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/mail_optional_autofollow/README.rst b/mail_optional_autofollow/README.rst index 5e86af54a..072aa6070 100644 --- a/mail_optional_autofollow/README.rst +++ b/mail_optional_autofollow/README.rst @@ -1,3 +1,7 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + ======================== Mail optional autofollow ======================== @@ -7,13 +11,13 @@ Mail optional autofollow !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:3aebbde0a044037526dd7911c3501be9a90b586a8d82233b3e341adeaed5e71c + !! source digest: sha256:0037e8f88b72468b9b0c4c30d9f71f91d8cf86e62654ef195d8dd1381abb3e38 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status :alt: Beta -.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png +.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmail-lightgray.png?logo=github diff --git a/mail_optional_autofollow/static/description/index.html b/mail_optional_autofollow/static/description/index.html index e047be5de..dd5b1000d 100644 --- a/mail_optional_autofollow/static/description/index.html +++ b/mail_optional_autofollow/static/description/index.html @@ -3,7 +3,7 @@ -Mail optional autofollow +README.rst -
-

Mail optional autofollow

+
+ + +Odoo Community Association + +
+

Mail optional autofollow

-

Beta License: AGPL-3 OCA/mail Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/mail Translate me on Weblate Try me on Runboat

This module adds the possibility to choose if you want to automatically add new recipients as followers on mail.compose.message.

Table of contents

@@ -387,7 +392,7 @@

Mail optional autofollow

-

Usage

+

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 a @@ -395,7 +400,7 @@

Usage

autofollow.png

-

Bug Tracker

+

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 to smash it by providing a detailed and welcomed @@ -403,15 +408,15 @@

Bug Tracker

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • ACSONE SA/NV
-

Contributors

+

Contributors

-

Other credits

+

Other credits

The development of this module has been financially supported by:

  • ACSONE SA/NV
-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -442,5 +447,6 @@

Maintainers

+
From 39fb2570255c0647c47132a09bb779078f5a6884 Mon Sep 17 00:00:00 2001 From: Bhavesh Heliconia Date: Thu, 16 Oct 2025 14:58:19 +0530 Subject: [PATCH 43/44] [IMP] mail_optional_autofollow: pre-commit auto fixes --- mail_optional_autofollow/README.rst | 12 ++++++------ mail_optional_autofollow/__manifest__.py | 2 +- .../static/description/index.html | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/mail_optional_autofollow/README.rst b/mail_optional_autofollow/README.rst index 072aa6070..9f09ab23d 100644 --- a/mail_optional_autofollow/README.rst +++ b/mail_optional_autofollow/README.rst @@ -21,13 +21,13 @@ Mail optional autofollow :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmail-lightgray.png?logo=github - :target: https://github.com/OCA/mail/tree/18.0/mail_optional_autofollow + :target: https://github.com/OCA/mail/tree/19.0/mail_optional_autofollow :alt: OCA/mail .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/mail-18-0/mail-18-0-mail_optional_autofollow + :target: https://translation.odoo-community.org/projects/mail-19-0/mail-19-0-mail_optional_autofollow :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/mail&target_branch=18.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/mail&target_branch=19.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -51,7 +51,7 @@ Technically, this field is initialized to true if there is a |autofollow.png| -.. |autofollow.png| image:: https://raw.githubusercontent.com/OCA/mail/18.0/mail_optional_autofollow/static/description/autofollow.png +.. |autofollow.png| image:: https://raw.githubusercontent.com/OCA/mail/19.0/mail_optional_autofollow/static/description/autofollow.png Bug Tracker =========== @@ -59,7 +59,7 @@ 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 to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -100,6 +100,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/mail `_ project on GitHub. +This module is part of the `OCA/mail `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mail_optional_autofollow/__manifest__.py b/mail_optional_autofollow/__manifest__.py index 1da7e10e2..dd2705a22 100644 --- a/mail_optional_autofollow/__manifest__.py +++ b/mail_optional_autofollow/__manifest__.py @@ -5,7 +5,7 @@ "summary": """ Choose if you want to automatically add new recipients as followers on mail.compose.message""", - "author": "ACSONE SA/NV," "Odoo Community Association (OCA)", + "author": "ACSONE SA/NV,Odoo Community Association (OCA)", "website": "https://github.com/OCA/mail", "category": "Social Network", "version": "18.0.1.0.0", diff --git a/mail_optional_autofollow/static/description/index.html b/mail_optional_autofollow/static/description/index.html index dd5b1000d..c4f40ab33 100644 --- a/mail_optional_autofollow/static/description/index.html +++ b/mail_optional_autofollow/static/description/index.html @@ -374,7 +374,7 @@

Mail optional autofollow

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:0037e8f88b72468b9b0c4c30d9f71f91d8cf86e62654ef195d8dd1381abb3e38 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/mail Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/mail Translate me on Weblate Try me on Runboat

This module adds the possibility to choose if you want to automatically add new recipients as followers on mail.compose.message.

Table of contents

@@ -397,14 +397,14 @@

Usage

on mail.compose.message:

Technically, this field is initialized to true if there is a ‘mail_post_autofollow’ key in the current context

-

autofollow.png

+

autofollow.png

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

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -442,7 +442,7 @@

Maintainers

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

-

This module is part of the OCA/mail project on GitHub.

+

This module is part of the OCA/mail project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

From 00b17810edfd06d7f81fc78d0923b9bdfeb09c43 Mon Sep 17 00:00:00 2001 From: Bhavesh Heliconia Date: Thu, 16 Oct 2025 15:01:45 +0530 Subject: [PATCH 44/44] [MIG] mail_optional_autofollow: Migration to 19.0 --- mail_optional_autofollow/__manifest__.py | 2 +- .../tests/test_mail_optional_autofollow.py | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/mail_optional_autofollow/__manifest__.py b/mail_optional_autofollow/__manifest__.py index dd2705a22..bc6f9a352 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/mail", "category": "Social Network", - "version": "18.0.1.0.0", + "version": "19.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 91862033c..7d8483e33 100644 --- a/mail_optional_autofollow/tests/test_mail_optional_autofollow.py +++ b/mail_optional_autofollow/tests/test_mail_optional_autofollow.py @@ -11,8 +11,21 @@ class TestAttachExistingAttachment(BaseCommon): def setUpClass(cls): super().setUpClass() cls.partner_obj = cls.env["res.partner"] - cls.partner_01 = cls.env.ref("base.res_partner_10") - cls.partner_02 = cls.env.ref("base.res_partner_address_17") + cls.partner_01 = cls.partner_obj.create( + { + "name": "The Jackson Group", + "is_company": True, + "email": "jackson.group82@example.com", + } + ) + cls.partner_02 = cls.partner_obj.create( + { + "name": "Toni Rhodes", + "function": "Managing Partner", + "parent_id": cls.partner_01.id, + "email": "toni.rhodes11@example.com", + } + ) def test_send_email_attachment(self): ctx = self.env.context.copy()