From baebfbdba4cfa35d10990d2b342eaf4d3d194d47 Mon Sep 17 00:00:00 2001
From: Antoni Marroig Campomar
Date: Mon, 22 Jul 2024 17:34:08 +0200
Subject: [PATCH] [IMP] hr_holidays_natural_period: pre-commit auto fixes
---
hr_holidays_natural_period/README.rst | 40 ++++++++++---------
hr_holidays_natural_period/pyproject.toml | 3 ++
.../readme/CONTRIBUTORS.md | 4 ++
.../readme/CONTRIBUTORS.rst | 4 --
.../{DESCRIPTION.rst => DESCRIPTION.md} | 3 +-
hr_holidays_natural_period/readme/USAGE.md | 10 +++++
hr_holidays_natural_period/readme/USAGE.rst | 9 -----
.../static/description/index.html | 31 ++++++++------
8 files changed, 58 insertions(+), 46 deletions(-)
create mode 100644 hr_holidays_natural_period/pyproject.toml
create mode 100644 hr_holidays_natural_period/readme/CONTRIBUTORS.md
delete mode 100644 hr_holidays_natural_period/readme/CONTRIBUTORS.rst
rename hr_holidays_natural_period/readme/{DESCRIPTION.rst => DESCRIPTION.md} (73%)
create mode 100644 hr_holidays_natural_period/readme/USAGE.md
delete mode 100644 hr_holidays_natural_period/readme/USAGE.rst
diff --git a/hr_holidays_natural_period/README.rst b/hr_holidays_natural_period/README.rst
index 12a32afa..34474664 100644
--- a/hr_holidays_natural_period/README.rst
+++ b/hr_holidays_natural_period/README.rst
@@ -17,18 +17,19 @@ Holidays natural period
: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--holidays-lightgray.png?logo=github
- :target: https://github.com/OCA/hr-holidays/tree/16.0/hr_holidays_natural_period
+ :target: https://github.com/OCA/hr-holidays/tree/17.0/hr_holidays_natural_period
:alt: OCA/hr-holidays
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/hr-holidays-16-0/hr-holidays-16-0-hr_holidays_natural_period
+ :target: https://translation.odoo-community.org/projects/hr-holidays-17-0/hr-holidays-17-0-hr_holidays_natural_period
: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-holidays&target_branch=16.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/hr-holidays&target_branch=17.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
-This module was written to define natural day option in request unit on holidays type.
+This module was written to define natural day option in request unit on
+holidays type.
**Table of contents**
@@ -40,13 +41,14 @@ Usage
For using natural period on leaves:
-#. Go to *Leaves > Dashboard*.
-#. Select dragging on the calendar the days you want to be on leave, or go
- to the form view for selecting start and end dates.
-#. Select the proper "Leave Type" that has "Natural day" selected in "Request unit".
-#. If no leave type is yet specified, then default configuration is to exclude
- public holidays.
-#. The number of days will be computed without employee calendar used.
+1. Go to *Leaves > Dashboard*.
+2. Select dragging on the calendar the days you want to be on leave, or
+ go to the form view for selecting start and end dates.
+3. Select the proper "Leave Type" that has "Natural day" selected in
+ "Request unit".
+4. If no leave type is yet specified, then default configuration is to
+ exclude public holidays.
+5. The number of days will be computed without employee calendar used.
Bug Tracker
===========
@@ -54,7 +56,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.
@@ -62,20 +64,20 @@ Credits
=======
Authors
-~~~~~~~
+-------
* Tecnativa
Contributors
-~~~~~~~~~~~~
+------------
-* Tecnativa
+- Tecnativa
- * Víctor Martínez
- * Pedro Baeza
+ - Víctor Martínez
+ - Pedro Baeza
Maintainers
-~~~~~~~~~~~
+-----------
This module is maintained by the OCA.
@@ -95,6 +97,6 @@ Current `maintainer `__:
|maintainer-victoralmau|
-This module is part of the `OCA/hr-holidays `_ project on GitHub.
+This module is part of the `OCA/hr-holidays `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/hr_holidays_natural_period/pyproject.toml b/hr_holidays_natural_period/pyproject.toml
new file mode 100644
index 00000000..4231d0cc
--- /dev/null
+++ b/hr_holidays_natural_period/pyproject.toml
@@ -0,0 +1,3 @@
+[build-system]
+requires = ["whool"]
+build-backend = "whool.buildapi"
diff --git a/hr_holidays_natural_period/readme/CONTRIBUTORS.md b/hr_holidays_natural_period/readme/CONTRIBUTORS.md
new file mode 100644
index 00000000..ab9d6965
--- /dev/null
+++ b/hr_holidays_natural_period/readme/CONTRIBUTORS.md
@@ -0,0 +1,4 @@
+- Tecnativa \<\>
+
+ > - Víctor Martínez
+ > - Pedro Baeza
diff --git a/hr_holidays_natural_period/readme/CONTRIBUTORS.rst b/hr_holidays_natural_period/readme/CONTRIBUTORS.rst
deleted file mode 100644
index 1a5f4368..00000000
--- a/hr_holidays_natural_period/readme/CONTRIBUTORS.rst
+++ /dev/null
@@ -1,4 +0,0 @@
-* Tecnativa
-
- * Víctor Martínez
- * Pedro Baeza
diff --git a/hr_holidays_natural_period/readme/DESCRIPTION.rst b/hr_holidays_natural_period/readme/DESCRIPTION.md
similarity index 73%
rename from hr_holidays_natural_period/readme/DESCRIPTION.rst
rename to hr_holidays_natural_period/readme/DESCRIPTION.md
index f3730d10..cb89dc01 100644
--- a/hr_holidays_natural_period/readme/DESCRIPTION.rst
+++ b/hr_holidays_natural_period/readme/DESCRIPTION.md
@@ -1 +1,2 @@
-This module was written to define natural day option in request unit on holidays type.
+This module was written to define natural day option in request unit on
+holidays type.
diff --git a/hr_holidays_natural_period/readme/USAGE.md b/hr_holidays_natural_period/readme/USAGE.md
new file mode 100644
index 00000000..298cc0da
--- /dev/null
+++ b/hr_holidays_natural_period/readme/USAGE.md
@@ -0,0 +1,10 @@
+For using natural period on leaves:
+
+1. Go to *Leaves \> Dashboard*.
+2. Select dragging on the calendar the days you want to be on leave, or
+ go to the form view for selecting start and end dates.
+3. Select the proper "Leave Type" that has "Natural day" selected in
+ "Request unit".
+4. If no leave type is yet specified, then default configuration is to
+ exclude public holidays.
+5. The number of days will be computed without employee calendar used.
diff --git a/hr_holidays_natural_period/readme/USAGE.rst b/hr_holidays_natural_period/readme/USAGE.rst
deleted file mode 100644
index a4425e87..00000000
--- a/hr_holidays_natural_period/readme/USAGE.rst
+++ /dev/null
@@ -1,9 +0,0 @@
-For using natural period on leaves:
-
-#. Go to *Leaves > Dashboard*.
-#. Select dragging on the calendar the days you want to be on leave, or go
- to the form view for selecting start and end dates.
-#. Select the proper "Leave Type" that has "Natural day" selected in "Request unit".
-#. If no leave type is yet specified, then default configuration is to exclude
- public holidays.
-#. The number of days will be computed without employee calendar used.
diff --git a/hr_holidays_natural_period/static/description/index.html b/hr_holidays_natural_period/static/description/index.html
index 8cf807aa..62c841a9 100644
--- a/hr_holidays_natural_period/static/description/index.html
+++ b/hr_holidays_natural_period/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 @@
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.pre {
white-space: pre }
-span.problematic {
+span.problematic, pre.problematic {
color: red }
span.section-subtitle {
@@ -368,8 +369,9 @@ Holidays natural period
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:78da5aea18b0817984f207d9021d5623f8a1fe9d26a6160c4219a54b9f878df5
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
-This module was written to define natural day option in request unit on holidays type.
+
+This module was written to define natural day option in request unit on
+holidays type.
Table of contents
@@ -401,7 +404,7 @@
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.
@@ -428,13 +431,15 @@
This module is maintained by the OCA.
-
+
+
+
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:
-
This module is part of the OCA/hr-holidays project on GitHub.
+
This module is part of the OCA/hr-holidays project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.