From eab7a4ec84403229189efe676ca6df6ef0fc7fa0 Mon Sep 17 00:00:00 2001 From: Carlos Lopez Date: Thu, 20 Feb 2025 08:08:16 -0500 Subject: [PATCH] [IMP] mail_no_user_assign_notification: pre-commit auto fixes --- mail_no_user_assign_notification/README.rst | 49 ++++++++++--------- .../pyproject.toml | 3 ++ .../readme/CONFIGURE.md | 8 +++ .../readme/CONFIGURE.rst | 7 --- .../readme/CONTRIBUTORS.md | 3 ++ .../readme/CONTRIBUTORS.rst | 4 -- .../{DESCRIPTION.rst => DESCRIPTION.md} | 3 +- .../readme/ROADMAP.md | 2 + .../readme/ROADMAP.rst | 2 - .../readme/USAGE.md | 5 ++ .../readme/USAGE.rst | 4 -- .../static/description/index.html | 36 ++++++++------ 12 files changed, 70 insertions(+), 56 deletions(-) create mode 100644 mail_no_user_assign_notification/pyproject.toml create mode 100644 mail_no_user_assign_notification/readme/CONFIGURE.md delete mode 100644 mail_no_user_assign_notification/readme/CONFIGURE.rst create mode 100644 mail_no_user_assign_notification/readme/CONTRIBUTORS.md delete mode 100644 mail_no_user_assign_notification/readme/CONTRIBUTORS.rst rename mail_no_user_assign_notification/readme/{DESCRIPTION.rst => DESCRIPTION.md} (80%) create mode 100644 mail_no_user_assign_notification/readme/ROADMAP.md delete mode 100644 mail_no_user_assign_notification/readme/ROADMAP.rst create mode 100644 mail_no_user_assign_notification/readme/USAGE.md delete mode 100644 mail_no_user_assign_notification/readme/USAGE.rst diff --git a/mail_no_user_assign_notification/README.rst b/mail_no_user_assign_notification/README.rst index fd709d4a1..afa59f21b 100644 --- a/mail_no_user_assign_notification/README.rst +++ b/mail_no_user_assign_notification/README.rst @@ -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 `_. 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. @@ -74,20 +77,20 @@ Credits ======= Authors -~~~~~~~ +------- * Tecnativa Contributors -~~~~~~~~~~~~ +------------ -* `Tecnativa `_: +- `Tecnativa `__: - * 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 `__: |maintainer-victoralmau| -This module is part of the `OCA/social `_ project on GitHub. +This module is part of the `OCA/social `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mail_no_user_assign_notification/pyproject.toml b/mail_no_user_assign_notification/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/mail_no_user_assign_notification/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/mail_no_user_assign_notification/readme/CONFIGURE.md b/mail_no_user_assign_notification/readme/CONFIGURE.md new file mode 100644 index 000000000..c18b02230 --- /dev/null +++ b/mail_no_user_assign_notification/readme/CONFIGURE.md @@ -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. diff --git a/mail_no_user_assign_notification/readme/CONFIGURE.rst b/mail_no_user_assign_notification/readme/CONFIGURE.rst deleted file mode 100644 index dfa6df12b..000000000 --- a/mail_no_user_assign_notification/readme/CONFIGURE.rst +++ /dev/null @@ -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. diff --git a/mail_no_user_assign_notification/readme/CONTRIBUTORS.md b/mail_no_user_assign_notification/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..5fee39042 --- /dev/null +++ b/mail_no_user_assign_notification/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- [Tecnativa](https://www.tecnativa.com): + - Víctor Martínez + - Pedro M. Baeza diff --git a/mail_no_user_assign_notification/readme/CONTRIBUTORS.rst b/mail_no_user_assign_notification/readme/CONTRIBUTORS.rst deleted file mode 100644 index 5fb713053..000000000 --- a/mail_no_user_assign_notification/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,4 +0,0 @@ -* `Tecnativa `_: - - * Víctor Martínez - * Pedro M. Baeza diff --git a/mail_no_user_assign_notification/readme/DESCRIPTION.rst b/mail_no_user_assign_notification/readme/DESCRIPTION.md similarity index 80% rename from mail_no_user_assign_notification/readme/DESCRIPTION.rst rename to mail_no_user_assign_notification/readme/DESCRIPTION.md index 5242a6317..e94865168 100644 --- a/mail_no_user_assign_notification/readme/DESCRIPTION.rst +++ b/mail_no_user_assign_notification/readme/DESCRIPTION.md @@ -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. diff --git a/mail_no_user_assign_notification/readme/ROADMAP.md b/mail_no_user_assign_notification/readme/ROADMAP.md new file mode 100644 index 000000000..e880900b8 --- /dev/null +++ b/mail_no_user_assign_notification/readme/ROADMAP.md @@ -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. diff --git a/mail_no_user_assign_notification/readme/ROADMAP.rst b/mail_no_user_assign_notification/readme/ROADMAP.rst deleted file mode 100644 index 6633bdfa3..000000000 --- a/mail_no_user_assign_notification/readme/ROADMAP.rst +++ /dev/null @@ -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. diff --git a/mail_no_user_assign_notification/readme/USAGE.md b/mail_no_user_assign_notification/readme/USAGE.md new file mode 100644 index 000000000..72ca425c5 --- /dev/null +++ b/mail_no_user_assign_notification/readme/USAGE.md @@ -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. diff --git a/mail_no_user_assign_notification/readme/USAGE.rst b/mail_no_user_assign_notification/readme/USAGE.rst deleted file mode 100644 index 28839c376..000000000 --- a/mail_no_user_assign_notification/readme/USAGE.rst +++ /dev/null @@ -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. diff --git a/mail_no_user_assign_notification/static/description/index.html b/mail_no_user_assign_notification/static/description/index.html index 7ec0fac71..e3a9a83c9 100644 --- a/mail_no_user_assign_notification/static/description/index.html +++ b/mail_no_user_assign_notification/static/description/index.html @@ -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 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

-

This module inhibits the assignation notification from the models that we want.

+

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

+

This module inhibits the assignation notification from the models that +we want.

Table of contents

    @@ -389,26 +391,28 @@ ul.auto-toc {

    Configuration

    1. Go to Settings > Technical > System Parameters
    2. -
    3. Edit “mail_no_user_assign_notification.models” key record
    4. +
    5. Edit “mailno_user_assign_notification.models” key record
    6. 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.

    +

    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.

Usage

  1. Go to one of the configured models (like Contacts).
  2. -
  3. 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).
  4. +
  5. 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).
  6. 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.
@@ -416,7 +420,7 @@ A specific extension would be needed.

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.

@@ -440,13 +444,15 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +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.

Current maintainer:

victoralmau

-

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

+

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

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