Skip to content

Commit 5274234

Browse files
committed
Merge PR #89 into 19.0
Signed-off-by etobella
2 parents e1c8e32 + c91a84e commit 5274234

File tree

17 files changed

+691
-0
lines changed

17 files changed

+691
-0
lines changed

mail_partner_opt_out/README.rst

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
.. image:: https://odoo-community.org/readme-banner-image
2+
:target: https://odoo-community.org/get-involved?utm_source=readme
3+
:alt: Odoo Community Association
4+
5+
====================
6+
Mail Partner Opt Out
7+
====================
8+
9+
..
10+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11+
!! This file is generated by oca-gen-addon-readme !!
12+
!! changes will be overwritten. !!
13+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14+
!! source digest: sha256:ad64242eff6365d70a866ae459a1da1d5bfe0406d3ad017cf19df961740f7fd9
15+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16+
17+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
18+
:target: https://odoo-community.org/page/development-status
19+
:alt: Beta
20+
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
21+
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
22+
:alt: License: LGPL-3
23+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmail-lightgray.png?logo=github
24+
:target: https://github.com/OCA/mail/tree/19.0/mail_partner_opt_out
25+
:alt: OCA/mail
26+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27+
:target: https://translation.odoo-community.org/projects/mail-19-0/mail-19-0-mail_partner_opt_out
28+
:alt: Translate me on Weblate
29+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/mail&target_branch=19.0
31+
:alt: Try me on Runboat
32+
33+
|badge1| |badge2| |badge3| |badge4| |badge5|
34+
35+
This module adds the capability for a user to add a partner's email
36+
address to the blackmail list so that she will not receive any emails
37+
from mass mailing campaigns
38+
39+
**Table of contents**
40+
41+
.. contents::
42+
:local:
43+
44+
Usage
45+
=====
46+
47+
Go to a partner. Next to the partner's email address you will see a plus
48+
symbol. Once you press it the partner's email address will be
49+
blacklisted and then a ban will appear. If you click that ban the email
50+
address will be removed from the blacklist.
51+
52+
You can also filter for the Blacklist attribute, to see all the
53+
partner's that their email has been added to the blacklist.
54+
55+
Bug Tracker
56+
===========
57+
58+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/mail/issues>`_.
59+
In case of trouble, please check there if your issue has already been reported.
60+
If you spotted it first, help us to smash it by providing a detailed and welcomed
61+
`feedback <https://github.com/OCA/mail/issues/new?body=module:%20mail_partner_opt_out%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
62+
63+
Do not contact contributors directly about support or help with technical issues.
64+
65+
Credits
66+
=======
67+
68+
Authors
69+
-------
70+
71+
* ForgeFlow
72+
73+
Contributors
74+
------------
75+
76+
- ForgeFlow, S.L. (contact@forgeflow.com)
77+
78+
- Jordi Ballester Alomar (jordi.ballester@forgeflow.com)
79+
80+
Other credits
81+
-------------
82+
83+
The migration of this module from 18.0 to 19.0 was financially supported
84+
by Agent ERP GmbH
85+
86+
Maintainers
87+
-----------
88+
89+
This module is maintained by the OCA.
90+
91+
.. image:: https://odoo-community.org/logo.png
92+
:alt: Odoo Community Association
93+
:target: https://odoo-community.org
94+
95+
OCA, or the Odoo Community Association, is a nonprofit organization whose
96+
mission is to support the collaborative development of Odoo features and
97+
promote its widespread use.
98+
99+
This module is part of the `OCA/mail <https://github.com/OCA/mail/tree/19.0/mail_partner_opt_out>`_ project on GitHub.
100+
101+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

mail_partner_opt_out/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2021 ForgeFlow S.L.
2+
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
3+
{
4+
"name": "Mail Partner Opt Out",
5+
"summary": "Add the partner's email to the blackmailed list",
6+
"version": "19.0.1.0.0",
7+
"development_status": "Beta",
8+
"category": "Social Network",
9+
"website": "https://github.com/OCA/mail",
10+
"author": "ForgeFlow, Odoo Community Association (OCA)",
11+
"license": "LGPL-3",
12+
"installable": True,
13+
"data": ["views/res_partner_views.xml"],
14+
"depends": ["mail"],
15+
}

mail_partner_opt_out/i18n/it.po

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * mail_partner_opt_out
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2023-12-01 10:12+0000\n"
10+
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
11+
"Language-Team: none\n"
12+
"Language: it\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 4.17\n"
18+
19+
#. module: mail_partner_opt_out
20+
#: model_terms:ir.ui.view,arch_db:mail_partner_opt_out.res_partner_view_form_inherit_mail
21+
msgid "Click to add this email to the blacklist."
22+
msgstr "Fare clic per aggiungere questa e-mail alla blacklist."
23+
24+
#. module: mail_partner_opt_out
25+
#: model:ir.model,name:mail_partner_opt_out.model_mail_thread_blacklist
26+
msgid "Mail Blacklist mixin"
27+
msgstr "Mixin blacklist e-mail"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * mail_partner_opt_out
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 18.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: mail_partner_opt_out
17+
#: model_terms:ir.ui.view,arch_db:mail_partner_opt_out.res_partner_view_form_inherit_mail
18+
msgid "Click to add this email to the blacklist."
19+
msgstr ""
20+
21+
#. module: mail_partner_opt_out
22+
#: model:ir.model,name:mail_partner_opt_out.model_mail_thread_blacklist
23+
msgid "Mail Blacklist mixin"
24+
msgstr ""
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import mail_thread_blacklist
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from odoo import models
2+
3+
4+
class MailBlackListMixin(models.AbstractModel):
5+
_inherit = "mail.thread.blacklist"
6+
7+
def mail_blacklist_add(self):
8+
for mail_thread_blacklist in self:
9+
if not mail_thread_blacklist.is_blacklisted and mail_thread_blacklist.email:
10+
self.env["mail.blacklist"].sudo()._add(mail_thread_blacklist.email)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- ForgeFlow, S.L. (<contact@forgeflow.com>)
2+
3+
> - Jordi Ballester Alomar (<jordi.ballester@forgeflow.com>)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The migration of this module from 18.0 to 19.0 was financially supported by Agent ERP GmbH

0 commit comments

Comments
 (0)