From fa77b834afdbd6a74a7edddc596f90ab81d51b99 Mon Sep 17 00:00:00 2001 From: Antoni Marroig Campomar Date: Mon, 20 May 2024 16:20:01 +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 +++- requirements.txt | 2 ++ 10 files changed, 30 insertions(+), 21 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 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/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