[IMP] mail_no_user_assign_notification: pre-commit auto fixes

pull/1601/head
Carlos Lopez 2025-02-20 08:08:16 -05:00
parent eb0169e3ca
commit eab7a4ec84
12 changed files with 70 additions and 56 deletions

View File

@ -17,18 +17,19 @@ Mail No user Assign Notification
: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/15.0/mail_no_user_assign_notification
:target: https://github.com/OCA/social/tree/17.0/mail_no_user_assign_notification
:alt: OCA/social
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/social-15-0/social-15-0-mail_no_user_assign_notification
:target: https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_no_user_assign_notification
: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=15.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|
This module inhibits the assignation notification from the models that we want.
This module inhibits the assignation notification from the models that
we want.
**Table of contents**
@ -38,27 +39,29 @@ This module inhibits the assignation notification from the models that we want.
Configuration
=============
#. Go to Settings > Technical > System Parameters
#. Edit "mail_no_user_assign_notification.models" key record
#. Set any model* (for example: res.partner).
1. Go to Settings > Technical > System Parameters
2. Edit "mailno_user_assign_notification.models" key record
3. Set any model\* (for example: res.partner).
NOTE1: It is possible to set several models separated by comma (e.g.: model1,model2).
NOTE1: It is possible to set several models separated by comma (e.g.:
model1,model2).
NOTE2: The model should have the field `user_id` for this to be effective.
NOTE2: The model should have the field user_id for this to be effective.
Usage
=====
#. Go to one of the configured models (like Contacts).
#. Create or edit a record, and assign the field for the user (in contacts, it's called
"Salesperson", in purchase orders it's "Purchase representative", etc).
#. The user won't receive the automatic assignment email.
1. Go to one of the configured models (like Contacts).
2. Create or edit a record, and assign the field for the user (in
contacts, it's called "Salesperson", in purchase orders it's
"Purchase representative", etc).
3. The user won't receive the automatic assignment email.
Known issues / Roadmap
======================
* This is not valid for project tasks users assignation, as the field is multi-relational.
A specific extension would be needed.
- This is not valid for project tasks users assignation, as the field is
multi-relational. A specific extension would be needed.
Bug Tracker
===========
@ -66,7 +69,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_no_user_assign_notification%0Aversion:%2015.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_no_user_assign_notification%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.
@ -74,20 +77,20 @@ Credits
=======
Authors
~~~~~~~
-------
* Tecnativa
Contributors
~~~~~~~~~~~~
------------
* `Tecnativa <https://www.tecnativa.com>`_:
- `Tecnativa <https://www.tecnativa.com>`__:
* Víctor Martínez
* Pedro M. Baeza
- Víctor Martínez
- Pedro M. Baeza
Maintainers
~~~~~~~~~~~
-----------
This module is maintained by the OCA.
@ -107,6 +110,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|maintainer-victoralmau|
This module is part of the `OCA/social <https://github.com/OCA/social/tree/15.0/mail_no_user_assign_notification>`_ project on GitHub.
This module is part of the `OCA/social <https://github.com/OCA/social/tree/17.0/mail_no_user_assign_notification>`_ 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,8 @@
1. Go to Settings \> Technical \> System Parameters
2. Edit "mailno_user_assign_notification.models" key record
3. Set any model\* (for example: res.partner).
NOTE1: It is possible to set several models separated by comma (e.g.:
model1,model2).
NOTE2: The model should have the field user_id for this to be effective.

View File

@ -1,7 +0,0 @@
#. Go to Settings > Technical > System Parameters
#. Edit "mail_no_user_assign_notification.models" key record
#. Set any model* (for example: res.partner).
NOTE1: It is possible to set several models separated by comma (e.g.: model1,model2).
NOTE2: The model should have the field `user_id` for this to be effective.

View File

@ -0,0 +1,3 @@
- [Tecnativa](https://www.tecnativa.com):
- Víctor Martínez
- Pedro M. Baeza

View File

@ -1,4 +0,0 @@
* `Tecnativa <https://www.tecnativa.com>`_:
* Víctor Martínez
* Pedro M. Baeza

View File

@ -1 +1,2 @@
This module inhibits the assignation notification from the models that we want.
This module inhibits the assignation notification from the models that
we want.

View File

@ -0,0 +1,2 @@
- This is not valid for project tasks users assignation, as the field is
multi-relational. A specific extension would be needed.

View File

@ -1,2 +0,0 @@
* This is not valid for project tasks users assignation, as the field is multi-relational.
A specific extension would be needed.

View File

@ -0,0 +1,5 @@
1. Go to one of the configured models (like Contacts).
2. Create or edit a record, and assign the field for the user (in
contacts, it's called "Salesperson", in purchase orders it's
"Purchase representative", etc).
3. The user won't receive the automatic assignment email.

View File

@ -1,4 +0,0 @@
#. Go to one of the configured models (like Contacts).
#. Create or edit a record, and assign the field for the user (in contacts, it's called
"Salesperson", in purchase orders it's "Purchase representative", etc).
#. The user won't receive the automatic assignment email.

View File

@ -8,10 +8,11 @@
/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
@ -274,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
margin-left: 2em ;
margin-right: 2em }
pre.code .ln { color: grey; } /* line numbers */
pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@ -300,7 +301,7 @@ span.option {
span.pre {
white-space: pre }
span.problematic {
span.problematic, pre.problematic {
color: red }
span.section-subtitle {
@ -368,8 +369,9 @@ ul.auto-toc {
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:6a4d1334c05ef20496bb328fb7923f2a690c50cf84df26ff96c75edc66bac568
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/15.0/mail_no_user_assign_notification"><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-15-0/social-15-0-mail_no_user_assign_notification"><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=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module inhibits the assignation notification from the models that we want.</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_no_user_assign_notification"><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_no_user_assign_notification"><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>This module inhibits the assignation notification from the models that
we want.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
@ -389,26 +391,28 @@ ul.auto-toc {
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
<ol class="arabic simple">
<li>Go to Settings &gt; Technical &gt; System Parameters</li>
<li>Edit “mail_no_user_assign_notification.models” key record</li>
<li>Edit “mailno_user_assign_notification.models” key record</li>
<li>Set any model* (for example: res.partner).</li>
</ol>
<p>NOTE1: It is possible to set several models separated by comma (e.g.: model1,model2).</p>
<p>NOTE2: The model should have the field <cite>user_id</cite> for this to be effective.</p>
<p>NOTE1: It is possible to set several models separated by comma (e.g.:
model1,model2).</p>
<p>NOTE2: The model should have the field user_id for this to be effective.</p>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<ol class="arabic simple">
<li>Go to one of the configured models (like Contacts).</li>
<li>Create or edit a record, and assign the field for the user (in contacts, its called
“Salesperson”, in purchase orders its “Purchase representative”, etc).</li>
<li>Create or edit a record, and assign the field for the user (in
contacts, its called “Salesperson”, in purchase orders its
“Purchase representative”, etc).</li>
<li>The user wont receive the automatic assignment email.</li>
</ol>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-3">Known issues / Roadmap</a></h1>
<ul class="simple">
<li>This is not valid for project tasks users assignation, as the field is multi-relational.
A specific extension would be needed.</li>
<li>This is not valid for project tasks users assignation, as the field is
multi-relational. A specific extension would be needed.</li>
</ul>
</div>
<div class="section" id="bug-tracker">
@ -416,7 +420,7 @@ A specific extension would be needed.</li>
<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_no_user_assign_notification%0Aversion:%2015.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_no_user_assign_notification%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">
@ -440,13 +444,15 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<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>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/victoralmau"><img alt="victoralmau" src="https://github.com/victoralmau.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/social/tree/15.0/mail_no_user_assign_notification">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_no_user_assign_notification">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>