From 6fe994c0c9303396ae19448684385f1082b138b1 Mon Sep 17 00:00:00 2001 From: pilarvargas-tecnativa Date: Mon, 2 Dec 2024 17:39:29 +0100 Subject: [PATCH] [IMP] crm_event: pre-commit auto fixes --- crm_event/README.rst | 56 ++++++++++--------- crm_event/pyproject.toml | 3 + .../readme/{CONFIGURE.rst => CONFIGURE.md} | 0 crm_event/readme/CONTRIBUTORS.md | 3 + crm_event/readme/CONTRIBUTORS.rst | 4 -- .../{DESCRIPTION.rst => DESCRIPTION.md} | 6 +- crm_event/readme/USAGE.md | 21 +++++++ crm_event/readme/USAGE.rst | 21 ------- crm_event/static/description/index.html | 30 +++++----- 9 files changed, 76 insertions(+), 68 deletions(-) create mode 100644 crm_event/pyproject.toml rename crm_event/readme/{CONFIGURE.rst => CONFIGURE.md} (100%) create mode 100644 crm_event/readme/CONTRIBUTORS.md delete mode 100644 crm_event/readme/CONTRIBUTORS.rst rename crm_event/readme/{DESCRIPTION.rst => DESCRIPTION.md} (54%) create mode 100644 crm_event/readme/USAGE.md delete mode 100644 crm_event/readme/USAGE.rst diff --git a/crm_event/README.rst b/crm_event/README.rst index 69207207a..dd706d48e 100644 --- a/crm_event/README.rst +++ b/crm_event/README.rst @@ -17,20 +17,20 @@ CRM Event Category :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fevent-lightgray.png?logo=github - :target: https://github.com/OCA/event/tree/15.0/crm_event + :target: https://github.com/OCA/event/tree/17.0/crm_event :alt: OCA/event .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/event-15-0/event-15-0-crm_event + :target: https://translation.odoo-community.org/projects/event-17-0/event-17-0-crm_event :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/event&target_branch=15.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/event&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -This module extends the functionality of CRM opportunities (and leads, if -enabled) to support linking them to event categories and to allow you to keep -track of leads interested in an upcoming event of some category. +This module extends the functionality of CRM opportunities (and leads, +if enabled) to support linking them to event categories and to allow you +to keep track of leads interested in an upcoming event of some category. This is useful if you organize your events based on the amount of people interested in a certain category of event. @@ -45,33 +45,35 @@ Configuration To make use of this module, a user needs these minimal permissions: -- Sales / User: Own Documents Only -- Events / User +- Sales / User: Own Documents Only +- Events / User Usage ===== To link a lead or opportunity to an event category: -#. Go to *CRM > Pipeline* and pick one lead. -#. Go to the lead form. -#. Use the new field *Event category*. +1. Go to *CRM > Pipeline* and pick one lead. +2. Go to the lead form. +3. Use the new field *Event category*. To know if there are events planned of a certain category: -#. Go to *Events > Configuration > Event Categories* and pick one. -#. Use the new *Events* smart button. +1. Go to *Events > Configuration > Event Categories* and pick one. +2. Use the new *Events* smart button. - * It only counts those that are upcoming or running. - * The number between parenthesis is the available seats sum of all those events. + - It only counts those that are upcoming or running. + - The number between parenthesis is the available seats sum of all + those events. To know if there is people interested in a certain category of event: -#. Go to *Events > Configuration > Event Categories* and pick one. -#. Use the new *Opportunities* smart button. +1. Go to *Events > Configuration > Event Categories* and pick one. +2. Use the new *Opportunities* smart button. - * It only counts opportunities that aren't won or lost. - * The number between parenthesis is the wanted seats sum of all those events. + - It only counts opportunities that aren't won or lost. + - The number between parenthesis is the wanted seats sum of all + those events. Bug Tracker =========== @@ -79,7 +81,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. @@ -87,20 +89,20 @@ Credits ======= Authors -~~~~~~~ +------- * Tecnativa Contributors -~~~~~~~~~~~~ +------------ -* `Tecnativa `__: +- `Tecnativa `__: - * Jairo Llopis - * Stefan Ungureanu + - Jairo Llopis + - Stefan Ungureanu Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -120,6 +122,6 @@ Current `maintainer `__: |maintainer-Yajo| -This module is part of the `OCA/event `_ project on GitHub. +This module is part of the `OCA/event `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/crm_event/pyproject.toml b/crm_event/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/crm_event/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/crm_event/readme/CONFIGURE.rst b/crm_event/readme/CONFIGURE.md similarity index 100% rename from crm_event/readme/CONFIGURE.rst rename to crm_event/readme/CONFIGURE.md diff --git a/crm_event/readme/CONTRIBUTORS.md b/crm_event/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..3541fd95f --- /dev/null +++ b/crm_event/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- [Tecnativa](https://www.tecnativa.com): + - Jairo Llopis + - Stefan Ungureanu diff --git a/crm_event/readme/CONTRIBUTORS.rst b/crm_event/readme/CONTRIBUTORS.rst deleted file mode 100644 index 7de327916..000000000 --- a/crm_event/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,4 +0,0 @@ -* `Tecnativa `__: - - * Jairo Llopis - * Stefan Ungureanu diff --git a/crm_event/readme/DESCRIPTION.rst b/crm_event/readme/DESCRIPTION.md similarity index 54% rename from crm_event/readme/DESCRIPTION.rst rename to crm_event/readme/DESCRIPTION.md index 0790b1630..03e48762c 100644 --- a/crm_event/readme/DESCRIPTION.rst +++ b/crm_event/readme/DESCRIPTION.md @@ -1,6 +1,6 @@ -This module extends the functionality of CRM opportunities (and leads, if -enabled) to support linking them to event categories and to allow you to keep -track of leads interested in an upcoming event of some category. +This module extends the functionality of CRM opportunities (and leads, +if enabled) to support linking them to event categories and to allow you +to keep track of leads interested in an upcoming event of some category. This is useful if you organize your events based on the amount of people interested in a certain category of event. diff --git a/crm_event/readme/USAGE.md b/crm_event/readme/USAGE.md new file mode 100644 index 000000000..715df453f --- /dev/null +++ b/crm_event/readme/USAGE.md @@ -0,0 +1,21 @@ +To link a lead or opportunity to an event category: + +1. Go to *CRM \> Pipeline* and pick one lead. +2. Go to the lead form. +3. Use the new field *Event category*. + +To know if there are events planned of a certain category: + +1. Go to *Events \> Configuration \> Event Categories* and pick one. +2. Use the new *Events* smart button. + - It only counts those that are upcoming or running. + - The number between parenthesis is the available seats sum of all + those events. + +To know if there is people interested in a certain category of event: + +1. Go to *Events \> Configuration \> Event Categories* and pick one. +2. Use the new *Opportunities* smart button. + - It only counts opportunities that aren't won or lost. + - The number between parenthesis is the wanted seats sum of all + those events. diff --git a/crm_event/readme/USAGE.rst b/crm_event/readme/USAGE.rst deleted file mode 100644 index 318647566..000000000 --- a/crm_event/readme/USAGE.rst +++ /dev/null @@ -1,21 +0,0 @@ -To link a lead or opportunity to an event category: - -#. Go to *CRM > Pipeline* and pick one lead. -#. Go to the lead form. -#. Use the new field *Event category*. - -To know if there are events planned of a certain category: - -#. Go to *Events > Configuration > Event Categories* and pick one. -#. Use the new *Events* smart button. - - * It only counts those that are upcoming or running. - * The number between parenthesis is the available seats sum of all those events. - -To know if there is people interested in a certain category of event: - -#. Go to *Events > Configuration > Event Categories* and pick one. -#. Use the new *Opportunities* smart button. - - * It only counts opportunities that aren't won or lost. - * The number between parenthesis is the wanted seats sum of all those events. diff --git a/crm_event/static/description/index.html b/crm_event/static/description/index.html index 658fd8b93..edf8658c6 100644 --- a/crm_event/static/description/index.html +++ b/crm_event/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,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. @@ -275,7 +275,7 @@ 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 } @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -369,10 +369,10 @@

CRM Event Category

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:d57fa83b41c0601aa7ef5b56eae7b0e0cd5904368dc33e9c5792e89f6e1c0c83 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Production/Stable License: AGPL-3 OCA/event Translate me on Weblate Try me on Runboat

-

This module extends the functionality of CRM opportunities (and leads, if -enabled) to support linking them to event categories and to allow you to keep -track of leads interested in an upcoming event of some category.

+

Production/Stable License: AGPL-3 OCA/event Translate me on Weblate Try me on Runboat

+

This module extends the functionality of CRM opportunities (and leads, +if enabled) to support linking them to event categories and to allow you +to keep track of leads interested in an upcoming event of some category.

This is useful if you organize your events based on the amount of people interested in a certain category of event.

Table of contents

@@ -410,7 +410,8 @@

Usage

  • Go to Events > Configuration > Event Categories and pick one.
  • Use the new Events smart button.
    • It only counts those that are upcoming or running.
    • -
    • The number between parenthesis is the available seats sum of all those events.
    • +
    • The number between parenthesis is the available seats sum of all +those events.
  • @@ -419,7 +420,8 @@

    Usage

  • Go to Events > Configuration > Event Categories and pick one.
  • Use the new Opportunities smart button.
    • It only counts opportunities that aren’t won or lost.
    • -
    • The number between parenthesis is the wanted seats sum of all those events.
    • +
    • The number between parenthesis is the wanted seats sum of all +those events.
  • @@ -429,7 +431,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.

    @@ -453,13 +455,15 @@

    Contributors

    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:

    Yajo

    -

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

    +

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

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