[IMP] mail_tracking_mass_mailing: pre-commit auto fixes

pull/1412/head
David 2024-07-05 12:05:17 +02:00
parent b2fbe7b862
commit 8a9d65eda9
11 changed files with 69 additions and 69 deletions

View File

@ -17,13 +17,13 @@ Mail tracking for mass mailing
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github
:target: https://github.com/OCA/social/tree/16.0/mail_tracking_mass_mailing
:target: https://github.com/OCA/social/tree/17.0/mail_tracking_mass_mailing
:alt: OCA/social
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_tracking_mass_mailing
:target: https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_tracking_mass_mailing
: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/social&target_branch=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=17.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@ -44,16 +44,15 @@ This addon will be automatically installed when 'mail_tracking' and
Usage
=====
From mail statistic object, you can see:
- Email tracking state
- Email related tracking object
- Email related tracking events
From mail statistic object, you can see: - Email tracking state - Email
related tracking object - Email related tracking events
From mass mailing contact, you can see:
- Email score, in order to clean up your lists from bad score emails
From mass mailing contact, you can see: - Email score, in order to clean
up your lists from bad score emails
Mass mailing emails are sent only to recipients once. If you want to send
emails again to all the recipients, you must duplicate mass mailing.
Mass mailing emails are sent only to recipients once. If you want to
send emails again to all the recipients, you must duplicate mass
mailing.
Bug Tracker
===========
@ -61,7 +60,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/social/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/social/issues/new?body=module:%20mail_tracking_mass_mailing%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/social/issues/new?body=module:%20mail_tracking_mass_mailing%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
@ -69,32 +68,35 @@ Credits
=======
Authors
~~~~~~~
-------
* Tecnativa
Contributors
~~~~~~~~~~~~
------------
* `Tecnativa <https://www.tecnativa.com>`_:
- `Tecnativa <https://www.tecnativa.com>`__:
* Pedro M. Baeza
* Antonio Espinosa
* Vicent Cubells
* David Vidal
* Ernesto Tejeda
* Carlos Roca
* Sergio Teruel
* `Trobz <https://trobz.com>`_:
* nguyenhk <nguyenhk@trobz.com>
- Pedro M. Baeza
- Antonio Espinosa
- Vicent Cubells
- David Vidal
- Ernesto Tejeda
- Carlos Roca
- Sergio Teruel
- `Trobz <https://trobz.com>`__:
- nguyenhk <nguyenhk@trobz.com>
Other credits
~~~~~~~~~~~~~
-------------
The migration of this module from 15.0 to 16.0 was financially supported by Camptocamp
The migration of this module from 15.0 to 16.0 was financially supported
by Camptocamp
Maintainers
~~~~~~~~~~~
-----------
This module is maintained by the OCA.
@ -106,6 +108,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/social <https://github.com/OCA/social/tree/16.0/mail_tracking_mass_mailing>`_ project on GitHub.
This module is part of the `OCA/social <https://github.com/OCA/social/tree/17.0/mail_tracking_mass_mailing>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"

View File

@ -0,0 +1,11 @@
- [Tecnativa](https://www.tecnativa.com):
- Pedro M. Baeza
- Antonio Espinosa
- Vicent Cubells
- David Vidal
- Ernesto Tejeda
- Carlos Roca
- Sergio Teruel
- [Trobz](https://trobz.com):
- nguyenhk \<<nguyenhk@trobz.com>\>

View File

@ -1,11 +0,0 @@
* `Tecnativa <https://www.tecnativa.com>`_:
* Pedro M. Baeza
* Antonio Espinosa
* Vicent Cubells
* David Vidal
* Ernesto Tejeda
* Carlos Roca
* Sergio Teruel
* `Trobz <https://trobz.com>`_:
* nguyenhk <nguyenhk@trobz.com>

View File

@ -1 +1,2 @@
The migration of this module from 15.0 to 16.0 was financially supported by Camptocamp
The migration of this module from 15.0 to 16.0 was financially supported
by Camptocamp

View File

@ -0,0 +1,9 @@
From mail statistic object, you can see: - Email tracking state - Email
related tracking object - Email related tracking events
From mass mailing contact, you can see: - Email score, in order to clean
up your lists from bad score emails
Mass mailing emails are sent only to recipients once. If you want to
send emails again to all the recipients, you must duplicate mass
mailing.

View File

@ -1,10 +0,0 @@
From mail statistic object, you can see:
- Email tracking state
- Email related tracking object
- Email related tracking events
From mass mailing contact, you can see:
- Email score, in order to clean up your lists from bad score emails
Mass mailing emails are sent only to recipients once. If you want to send
emails again to all the recipients, you must duplicate mass mailing.

View File

@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
@ -369,7 +368,7 @@ ul.auto-toc {
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:4edf4ff85681e86fb94a4588fa29df7601ad9f9856268226a4a02a7e739723bd
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/social/tree/16.0/mail_tracking_mass_mailing"><img alt="OCA/social" src="https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_tracking_mass_mailing"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/social&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/social/tree/17.0/mail_tracking_mass_mailing"><img alt="OCA/social" src="https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_tracking_mass_mailing"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/social&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Links mail statistics objects with mail tracking objects.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
@ -393,21 +392,20 @@ ul.auto-toc {
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<p>From mail statistic object, you can see:
- Email tracking state
- Email related tracking object
- Email related tracking events</p>
<p>From mass mailing contact, you can see:
- Email score, in order to clean up your lists from bad score emails</p>
<p>Mass mailing emails are sent only to recipients once. If you want to send
emails again to all the recipients, you must duplicate mass mailing.</p>
<p>From mail statistic object, you can see: - Email tracking state - Email
related tracking object - Email related tracking events</p>
<p>From mass mailing contact, you can see: - Email score, in order to clean
up your lists from bad score emails</p>
<p>Mass mailing emails are sent only to recipients once. If you want to
send emails again to all the recipients, you must duplicate mass
mailing.</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/social/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/social/issues/new?body=module:%20mail_tracking_mass_mailing%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/social/issues/new?body=module:%20mail_tracking_mass_mailing%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
@ -431,19 +429,16 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
<li>Sergio Teruel</li>
</ul>
</li>
<li><dl class="first docutils">
<dt><a class="reference external" href="https://trobz.com">Trobz</a>:</dt>
<dd><ul class="first last">
<li><a class="reference external" href="https://trobz.com">Trobz</a>:<ul>
<li>nguyenhk &lt;<a class="reference external" href="mailto:nguyenhk&#64;trobz.com">nguyenhk&#64;trobz.com</a>&gt;</li>
</ul>
</dd>
</dl>
</li>
</ul>
</div>
<div class="section" id="other-credits">
<h2><a class="toc-backref" href="#toc-entry-7">Other credits</a></h2>
<p>The migration of this module from 15.0 to 16.0 was financially supported by Camptocamp</p>
<p>The migration of this module from 15.0 to 16.0 was financially supported
by Camptocamp</p>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
@ -452,7 +447,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/social/tree/16.0/mail_tracking_mass_mailing">OCA/social</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/social/tree/17.0/mail_tracking_mass_mailing">OCA/social</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>

View File

@ -21,7 +21,7 @@ class TestMassMailing(TransactionCase):
super().setUpClass()
cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT))
cls.list = cls.env["mailing.list"].create({"name": "Test mail tracking"})
cls.list.name = "{} #{}".format(cls.list.name, cls.list.id)
cls.list.name = f"{cls.list.name} #{cls.list.id}"
cls.contact_a = cls.env["mailing.contact"].create(
{
"list_ids": [(6, 0, cls.list.ids)],