From 1832f37472f13395334be79a3ff497fb4d28525c Mon Sep 17 00:00:00 2001 From: Antoni Marroig Campomar Date: Mon, 20 May 2024 16:09:45 +0200 Subject: [PATCH] [IMP] hr_payroll_document: pre-commit auto fixes --- hr_payroll_document/README.rst | 23 ++++++++++--------- hr_payroll_document/pyproject.toml | 3 +++ hr_payroll_document/readme/CONTRIBUTORS.md | 2 ++ hr_payroll_document/readme/CONTRIBUTORS.rst | 2 -- hr_payroll_document/readme/DESCRIPTION.md | 2 ++ hr_payroll_document/readme/DESCRIPTION.rst | 1 - .../static/description/index.html | 10 ++++---- hr_payroll_document/tests/common.py | 2 +- .../wizard/payroll_management_wizard.py | 4 +++- payroll/README.rst | 20 ++++++++-------- payroll/readme/CONTRIBUTORS.md | 5 ++++ payroll/readme/CONTRIBUTORS.rst | 5 ---- payroll/readme/DESCRIPTION.md | 5 ++++ payroll/readme/DESCRIPTION.rst | 3 --- payroll/static/description/index.html | 4 +++- requirements.txt | 2 ++ 16 files changed, 54 insertions(+), 39 deletions(-) create mode 100644 hr_payroll_document/pyproject.toml create mode 100644 hr_payroll_document/readme/CONTRIBUTORS.md delete mode 100644 hr_payroll_document/readme/CONTRIBUTORS.rst create mode 100644 hr_payroll_document/readme/DESCRIPTION.md delete mode 100644 hr_payroll_document/readme/DESCRIPTION.rst create mode 100644 payroll/readme/CONTRIBUTORS.md delete mode 100644 payroll/readme/CONTRIBUTORS.rst create mode 100644 payroll/readme/DESCRIPTION.md delete mode 100644 payroll/readme/DESCRIPTION.rst create mode 100644 requirements.txt diff --git a/hr_payroll_document/README.rst b/hr_payroll_document/README.rst index d8023bfd..f72573f0 100644 --- a/hr_payroll_document/README.rst +++ b/hr_payroll_document/README.rst @@ -17,18 +17,19 @@ HR - Payroll Document :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpayroll-lightgray.png?logo=github - :target: https://github.com/OCA/payroll/tree/16.0/hr_payroll_document + :target: https://github.com/OCA/payroll/tree/17.0/hr_payroll_document :alt: OCA/payroll .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/payroll-16-0/payroll-16-0-hr_payroll_document + :target: https://translation.odoo-community.org/projects/payroll-17-0/payroll-17-0-hr_payroll_document :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/payroll&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/payroll&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -This module have a wizard view to manage the different payrolls of employees which is identified by the identification_id attribute. +This module have a wizard view to manage the different payrolls of +employees which is identified by the identification_id attribute. **Table of contents** @@ -41,7 +42,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. @@ -49,18 +50,18 @@ Credits ======= Authors -~~~~~~~ +------- * APSL Contributors -~~~~~~~~~~~~ +------------ -* Antoni Marroig Campomar -* Miquel Alzanillas Monserrat +- Antoni Marroig Campomar +- Miquel Alzanillas Monserrat Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -80,6 +81,6 @@ Current `maintainer `__: |maintainer-peluko00| -This module is part of the `OCA/payroll `_ project on GitHub. +This module is part of the `OCA/payroll `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/hr_payroll_document/pyproject.toml b/hr_payroll_document/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/hr_payroll_document/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/hr_payroll_document/readme/CONTRIBUTORS.md b/hr_payroll_document/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..619e6b25 --- /dev/null +++ b/hr_payroll_document/readme/CONTRIBUTORS.md @@ -0,0 +1,2 @@ +- Antoni Marroig Campomar \<\> +- Miquel Alzanillas Monserrat \<\> diff --git a/hr_payroll_document/readme/CONTRIBUTORS.rst b/hr_payroll_document/readme/CONTRIBUTORS.rst deleted file mode 100644 index 08488d3f..00000000 --- a/hr_payroll_document/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,2 +0,0 @@ -* Antoni Marroig Campomar -* Miquel Alzanillas Monserrat diff --git a/hr_payroll_document/readme/DESCRIPTION.md b/hr_payroll_document/readme/DESCRIPTION.md new file mode 100644 index 00000000..fb12e7d4 --- /dev/null +++ b/hr_payroll_document/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +This module have a wizard view to manage the different payrolls of +employees which is identified by the identification_id attribute. diff --git a/hr_payroll_document/readme/DESCRIPTION.rst b/hr_payroll_document/readme/DESCRIPTION.rst deleted file mode 100644 index a4011cb5..00000000 --- a/hr_payroll_document/readme/DESCRIPTION.rst +++ /dev/null @@ -1 +0,0 @@ -This module have a wizard view to manage the different payrolls of employees which is identified by the identification_id attribute. diff --git a/hr_payroll_document/static/description/index.html b/hr_payroll_document/static/description/index.html index f9e20354..42b68336 100644 --- a/hr_payroll_document/static/description/index.html +++ b/hr_payroll_document/static/description/index.html @@ -1,4 +1,3 @@ - @@ -369,8 +368,9 @@

HR - Payroll Document

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:3698f5f5e529d5d32ae80cdc1ab30660ad4e5d39b6d98f8dace97a0b233743c5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

-

This module have a wizard view to manage the different payrolls of employees which is identified by the identification_id attribute.

+

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

+

This module have a wizard view to manage the different payrolls of +employees which is identified by the identification_id attribute.

Table of contents

    @@ -388,7 +388,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.

@@ -415,7 +415,7 @@

Maintainers

promote its widespread use.

Current maintainer:

peluko00

-

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

+

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

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

diff --git a/hr_payroll_document/tests/common.py b/hr_payroll_document/tests/common.py index 6214e13a..f9cab755 100644 --- a/hr_payroll_document/tests/common.py +++ b/hr_payroll_document/tests/common.py @@ -9,7 +9,7 @@ class TestHrPayrollDocument(common.TransactionCase): def setUp(self): - super(TestHrPayrollDocument, self).setUp() + super().setUp() self.env.user.tz = "Europe/Brussels" self.user_admin = self.env.ref("base.user_admin") diff --git a/hr_payroll_document/wizard/payroll_management_wizard.py b/hr_payroll_document/wizard/payroll_management_wizard.py index 20875303..fcb7fd8e 100644 --- a/hr_payroll_document/wizard/payroll_management_wizard.py +++ b/hr_payroll_document/wizard/payroll_management_wizard.py @@ -54,7 +54,9 @@ def send_payrolls(self): path = "/tmp/" + _("Payroll ") + employee.name + ".pdf" - # Encrypt the payroll file with the identification identifier of the employee + """ + Encrypt the payroll file with the identification identifier of the employee + """ pdfWriter.encrypt(employee.identification_id, algorithm="AES-256") f = open(path, "wb") diff --git a/payroll/README.rst b/payroll/README.rst index 9a868d87..893fd43e 100644 --- a/payroll/README.rst +++ b/payroll/README.rst @@ -30,7 +30,9 @@ Payroll Manage your employee payroll records. -This module is a backport from Odoo SA and as such, it is not included in the OCA CLA. That means we do not have a copy of the copyright on it like all other OCA modules. +This module is a backport from Odoo SA and as such, it is not included +in the OCA CLA. That means we do not have a copy of the copyright on it +like all other OCA modules. **Table of contents** @@ -51,21 +53,21 @@ Credits ======= Authors -~~~~~~~ +------- * Odoo SA Contributors -~~~~~~~~~~~~ +------------ -* Odoo SA -* David James -* Hilar AK -* Nimarosa (Nicolas Rodriguez) -* Henrik Norlin (@appstogrow) +- Odoo SA +- David James +- Hilar AK +- Nimarosa (Nicolas Rodriguez) +- Henrik Norlin (@appstogrow) Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. diff --git a/payroll/readme/CONTRIBUTORS.md b/payroll/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..0bc8d15e --- /dev/null +++ b/payroll/readme/CONTRIBUTORS.md @@ -0,0 +1,5 @@ +- Odoo SA \<\> +- David James \<\> +- Hilar AK \<\> +- Nimarosa (Nicolas Rodriguez) \<\> +- Henrik Norlin (@appstogrow) diff --git a/payroll/readme/CONTRIBUTORS.rst b/payroll/readme/CONTRIBUTORS.rst deleted file mode 100644 index 8a0b8ac8..00000000 --- a/payroll/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,5 +0,0 @@ -* Odoo SA -* David James -* Hilar AK -* Nimarosa (Nicolas Rodriguez) -* Henrik Norlin (@appstogrow) diff --git a/payroll/readme/DESCRIPTION.md b/payroll/readme/DESCRIPTION.md new file mode 100644 index 00000000..4fc60e5e --- /dev/null +++ b/payroll/readme/DESCRIPTION.md @@ -0,0 +1,5 @@ +Manage your employee payroll records. + +This module is a backport from Odoo SA and as such, it is not included +in the OCA CLA. That means we do not have a copy of the copyright on it +like all other OCA modules. diff --git a/payroll/readme/DESCRIPTION.rst b/payroll/readme/DESCRIPTION.rst deleted file mode 100644 index ce96b5f2..00000000 --- a/payroll/readme/DESCRIPTION.rst +++ /dev/null @@ -1,3 +0,0 @@ -Manage your employee payroll records. - -This module is a backport from Odoo SA and as such, it is not included in the OCA CLA. That means we do not have a copy of the copyright on it like all other OCA modules. diff --git a/payroll/static/description/index.html b/payroll/static/description/index.html index a4e1ef3f..66e01e19 100644 --- a/payroll/static/description/index.html +++ b/payroll/static/description/index.html @@ -370,7 +370,9 @@

Payroll

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: LGPL-3 OCA/payroll Translate me on Weblate Try me on Runboat

Manage your employee payroll records.

-

This module is a backport from Odoo SA and as such, it is not included in the OCA CLA. That means we do not have a copy of the copyright on it like all other OCA modules.

+

This module is a backport from Odoo SA and as such, it is not included +in the OCA CLA. That means we do not have a copy of the copyright on it +like all other OCA modules.

Table of contents

    diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..1ab56ace --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +# generated from manifests external_dependencies +pypdf