From 8665177d824f907c8e5019a055098bb4baca01b3 Mon Sep 17 00:00:00 2001 From: FernandoRomera Date: Thu, 12 Sep 2024 08:37:37 +0200 Subject: [PATCH] [IMP] hr_employee_ppe: pre-commit auto fixes --- hr_employee_ppe/README.rst | 50 +++++++++------- .../models/hr_personal_equipment.py | 1 - .../models/hr_personal_equipment_request.py | 1 - hr_employee_ppe/models/product_template.py | 1 - hr_employee_ppe/pyproject.toml | 3 + hr_employee_ppe/readme/CONTRIBUTORS.md | 5 ++ hr_employee_ppe/readme/CONTRIBUTORS.rst | 5 -- hr_employee_ppe/readme/CREDITS.md | 4 ++ hr_employee_ppe/readme/CREDITS.rst | 4 -- hr_employee_ppe/readme/DESCRIPTION.md | 6 ++ hr_employee_ppe/readme/DESCRIPTION.rst | 4 -- .../readme/{INSTALL.rst => INSTALL.md} | 3 +- hr_employee_ppe/readme/USAGE.md | 1 + hr_employee_ppe/readme/USAGE.rst | 0 hr_employee_ppe/static/description/index.html | 59 +++++++++++-------- 15 files changed, 84 insertions(+), 63 deletions(-) create mode 100644 hr_employee_ppe/pyproject.toml create mode 100644 hr_employee_ppe/readme/CONTRIBUTORS.md delete mode 100644 hr_employee_ppe/readme/CONTRIBUTORS.rst create mode 100644 hr_employee_ppe/readme/CREDITS.md delete mode 100644 hr_employee_ppe/readme/CREDITS.rst create mode 100644 hr_employee_ppe/readme/DESCRIPTION.md delete mode 100644 hr_employee_ppe/readme/DESCRIPTION.rst rename hr_employee_ppe/readme/{INSTALL.rst => INSTALL.md} (60%) create mode 100644 hr_employee_ppe/readme/USAGE.md delete mode 100644 hr_employee_ppe/readme/USAGE.rst diff --git a/hr_employee_ppe/README.rst b/hr_employee_ppe/README.rst index f525d410be5..f98975099e7 100644 --- a/hr_employee_ppe/README.rst +++ b/hr_employee_ppe/README.rst @@ -17,21 +17,23 @@ Personal Protective Equipment (PPE) Management :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github - :target: https://github.com/OCA/hr/tree/14.0/hr_employee_ppe + :target: https://github.com/OCA/hr/tree/17.0/hr_employee_ppe :alt: OCA/hr .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/hr-14-0/hr-14-0-hr_employee_ppe + :target: https://translation.odoo-community.org/projects/hr-17-0/hr-17-0-hr_employee_ppe :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/hr&target_branch=14.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/hr&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -This module allows you to manage allocation of PPE to your employees. -A product can be marked as ppe and additional information as duration and indications can also be added. -If ppe products are selected in a equipment request, a button to print a receipt of PPE will appear. -In addition, a chron will check every day if an allocation has been expired. +This module allows you to manage allocation of PPE to your employees. A +product can be marked as ppe and additional information as duration and +indications can also be added. If ppe products are selected in a +equipment request, a button to print a receipt of PPE will appear. In +addition, a chron will check every day if an allocation has been +expired. **Table of contents** @@ -41,7 +43,13 @@ In addition, a chron will check every day if an allocation has been expired. Installation ============ -To install this module, you need to have HR module installed or it will be requested during installation. +To install this module, you need to have HR module installed or it will +be requested during installation. + +Usage +===== + + Bug Tracker =========== @@ -49,7 +57,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. @@ -57,29 +65,29 @@ Credits ======= Authors -~~~~~~~ +------- * Escodoo Contributors -~~~~~~~~~~~~ +------------ -* Eduardo Aparicio -* Marcel Savegnago -* Joao Carassato -* Fernando Colus -* Alba Riera +- Eduardo Aparicio +- Marcel Savegnago +- Joao Carassato +- Fernando Colus +- Alba Riera Other credits -~~~~~~~~~~~~~ +------------- The development of this module has been financially supported by: -* Escodoo - `https://www.escodoo.com.br `_ -* Creu Blanca - `https://www.creublanca.es `_ +- Escodoo - https://www.escodoo.com.br +- Creu Blanca - https://www.creublanca.es Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -102,6 +110,6 @@ Current `maintainers `__: |maintainer-marcelsavegnago| |maintainer-eduaparicio| -This module is part of the `OCA/hr `_ project on GitHub. +This module is part of the `OCA/hr `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/hr_employee_ppe/models/hr_personal_equipment.py b/hr_employee_ppe/models/hr_personal_equipment.py index b3934de3422..21edae6d784 100644 --- a/hr_employee_ppe/models/hr_personal_equipment.py +++ b/hr_employee_ppe/models/hr_personal_equipment.py @@ -10,7 +10,6 @@ class HrPersonalEquipment(models.Model): - _name = "hr.personal.equipment" _inherit = ["hr.personal.equipment"] diff --git a/hr_employee_ppe/models/hr_personal_equipment_request.py b/hr_employee_ppe/models/hr_personal_equipment_request.py index 84b3f2b372d..445be2da59d 100644 --- a/hr_employee_ppe/models/hr_personal_equipment_request.py +++ b/hr_employee_ppe/models/hr_personal_equipment_request.py @@ -5,7 +5,6 @@ class HrPersonalEquipmentRequest(models.Model): - _inherit = "hr.personal.equipment.request" contains_ppe = fields.Boolean(compute="_compute_contains_ppe") diff --git a/hr_employee_ppe/models/product_template.py b/hr_employee_ppe/models/product_template.py index 255c9803403..79cd32cd5f9 100644 --- a/hr_employee_ppe/models/product_template.py +++ b/hr_employee_ppe/models/product_template.py @@ -5,7 +5,6 @@ class ProductTemplate(models.Model): - _name = "product.template" _inherit = ["product.template"] diff --git a/hr_employee_ppe/pyproject.toml b/hr_employee_ppe/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/hr_employee_ppe/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/hr_employee_ppe/readme/CONTRIBUTORS.md b/hr_employee_ppe/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..22c1eca1cf5 --- /dev/null +++ b/hr_employee_ppe/readme/CONTRIBUTORS.md @@ -0,0 +1,5 @@ +- Eduardo Aparicio \<\> +- Marcel Savegnago \<\> +- Joao Carassato \<\> +- Fernando Colus \<\> +- Alba Riera \<\> diff --git a/hr_employee_ppe/readme/CONTRIBUTORS.rst b/hr_employee_ppe/readme/CONTRIBUTORS.rst deleted file mode 100644 index 6c7b4de2bfb..00000000000 --- a/hr_employee_ppe/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,5 +0,0 @@ -* Eduardo Aparicio -* Marcel Savegnago -* Joao Carassato -* Fernando Colus -* Alba Riera diff --git a/hr_employee_ppe/readme/CREDITS.md b/hr_employee_ppe/readme/CREDITS.md new file mode 100644 index 00000000000..e4726c09de0 --- /dev/null +++ b/hr_employee_ppe/readme/CREDITS.md @@ -0,0 +1,4 @@ +The development of this module has been financially supported by: + +- Escodoo - +- Creu Blanca - diff --git a/hr_employee_ppe/readme/CREDITS.rst b/hr_employee_ppe/readme/CREDITS.rst deleted file mode 100644 index 1f660085e69..00000000000 --- a/hr_employee_ppe/readme/CREDITS.rst +++ /dev/null @@ -1,4 +0,0 @@ -The development of this module has been financially supported by: - -* Escodoo - `https://www.escodoo.com.br `_ -* Creu Blanca - `https://www.creublanca.es `_ diff --git a/hr_employee_ppe/readme/DESCRIPTION.md b/hr_employee_ppe/readme/DESCRIPTION.md new file mode 100644 index 00000000000..ebb39280817 --- /dev/null +++ b/hr_employee_ppe/readme/DESCRIPTION.md @@ -0,0 +1,6 @@ +This module allows you to manage allocation of PPE to your employees. A +product can be marked as ppe and additional information as duration and +indications can also be added. If ppe products are selected in a +equipment request, a button to print a receipt of PPE will appear. In +addition, a chron will check every day if an allocation has been +expired. diff --git a/hr_employee_ppe/readme/DESCRIPTION.rst b/hr_employee_ppe/readme/DESCRIPTION.rst deleted file mode 100644 index df382c50c92..00000000000 --- a/hr_employee_ppe/readme/DESCRIPTION.rst +++ /dev/null @@ -1,4 +0,0 @@ -This module allows you to manage allocation of PPE to your employees. -A product can be marked as ppe and additional information as duration and indications can also be added. -If ppe products are selected in a equipment request, a button to print a receipt of PPE will appear. -In addition, a chron will check every day if an allocation has been expired. diff --git a/hr_employee_ppe/readme/INSTALL.rst b/hr_employee_ppe/readme/INSTALL.md similarity index 60% rename from hr_employee_ppe/readme/INSTALL.rst rename to hr_employee_ppe/readme/INSTALL.md index 9b546f3535e..a50855b9f8f 100644 --- a/hr_employee_ppe/readme/INSTALL.rst +++ b/hr_employee_ppe/readme/INSTALL.md @@ -1 +1,2 @@ -To install this module, you need to have HR module installed or it will be requested during installation. +To install this module, you need to have HR module installed or it will +be requested during installation. diff --git a/hr_employee_ppe/readme/USAGE.md b/hr_employee_ppe/readme/USAGE.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/hr_employee_ppe/readme/USAGE.md @@ -0,0 +1 @@ + diff --git a/hr_employee_ppe/readme/USAGE.rst b/hr_employee_ppe/readme/USAGE.rst deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/hr_employee_ppe/static/description/index.html b/hr_employee_ppe/static/description/index.html index c3305c960fc..28c47700773 100644 --- a/hr_employee_ppe/static/description/index.html +++ b/hr_employee_ppe/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,47 +369,54 @@

Personal Protective Equipment (PPE) Management

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:f93350fdf3af6b48bd086a31abb6cd33bcf2b9b3ad1c793ea8fd8a8ac6a65251 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

-

This module allows you to manage allocation of PPE to your employees. -A product can be marked as ppe and additional information as duration and indications can also be added. -If ppe products are selected in a equipment request, a button to print a receipt of PPE will appear. -In addition, a chron will check every day if an allocation has been expired.

+

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

+

This module allows you to manage allocation of PPE to your employees. A +product can be marked as ppe and additional information as duration and +indications can also be added. If ppe products are selected in a +equipment request, a button to print a receipt of PPE will appear. In +addition, a chron will check every day if an allocation has been +expired.

Table of contents

Installation

-

To install this module, you need to have HR module installed or it will be requested during installation.

+

To install this module, you need to have HR module installed or it will +be requested during installation.

+
+
-

Bug Tracker

+

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.

-

Credits

+

Credits

-

Authors

+

Authors

  • Escodoo
-

Contributors

+

Contributors

-

Other credits

+

Other credits

The development of this module has been financially supported by:

-

Maintainers

+

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 maintainers:

marcelsavegnago eduaparicio

-

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

+

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

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