Skip to content

Commit

Permalink
[IMP] hr_payroll_document: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
peluko00 committed May 20, 2024
1 parent b875341 commit 1832f37
Show file tree
Hide file tree
Showing 16 changed files with 54 additions and 39 deletions.
23 changes: 12 additions & 11 deletions hr_payroll_document/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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**

Expand All @@ -41,26 +42,26 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/payroll/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 <https://github.com/OCA/payroll/issues/new?body=module:%20hr_payroll_document%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/payroll/issues/new?body=module:%20hr_payroll_document%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~
-------

* APSL

Contributors
~~~~~~~~~~~~
------------

* Antoni Marroig Campomar <amarroig@apsl.net>
* Miquel Alzanillas Monserrat <malzanillas@apsl.net>
- Antoni Marroig Campomar <amarroig@apsl.net>
- Miquel Alzanillas Monserrat <malzanillas@apsl.net>

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -80,6 +81,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-peluko00|

This module is part of the `OCA/payroll <https://github.com/OCA/payroll/tree/16.0/hr_payroll_document>`_ project on GitHub.
This module is part of the `OCA/payroll <https://github.com/OCA/payroll/tree/17.0/hr_payroll_document>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions hr_payroll_document/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
2 changes: 2 additions & 0 deletions hr_payroll_document/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Antoni Marroig Campomar \<<amarroig@apsl.net>\>
- Miquel Alzanillas Monserrat \<<malzanillas@apsl.net>\>
2 changes: 0 additions & 2 deletions hr_payroll_document/readme/CONTRIBUTORS.rst

This file was deleted.

2 changes: 2 additions & 0 deletions hr_payroll_document/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -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.
1 change: 0 additions & 1 deletion hr_payroll_document/readme/DESCRIPTION.rst

This file was deleted.

10 changes: 5 additions & 5 deletions hr_payroll_document/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand Down Expand Up @@ -369,8 +368,9 @@ <h1 class="title">HR - Payroll Document</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:3698f5f5e529d5d32ae80cdc1ab30660ad4e5d39b6d98f8dace97a0b233743c5
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/payroll/tree/16.0/hr_payroll_document"><img alt="OCA/payroll" src="https://img.shields.io/badge/github-OCA%2Fpayroll-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/payroll-16-0/payroll-16-0-hr_payroll_document"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/payroll&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module have a wizard view to manage the different payrolls of employees which is identified by the identification_id attribute.</p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/payroll/tree/17.0/hr_payroll_document"><img alt="OCA/payroll" src="https://img.shields.io/badge/github-OCA%2Fpayroll-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/payroll-17-0/payroll-17-0-hr_payroll_document"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/payroll&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module have a wizard view to manage the different payrolls of
employees which is identified by the identification_id attribute.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -388,7 +388,7 @@ <h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/payroll/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/payroll/issues/new?body=module:%20hr_payroll_document%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/payroll/issues/new?body=module:%20hr_payroll_document%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand All @@ -415,7 +415,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/peluko00"><img alt="peluko00" src="https://github.com/peluko00.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/payroll/tree/16.0/hr_payroll_document">OCA/payroll</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/payroll/tree/17.0/hr_payroll_document">OCA/payroll</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion hr_payroll_document/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
4 changes: 3 additions & 1 deletion hr_payroll_document/wizard/payroll_management_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
20 changes: 11 additions & 9 deletions payroll/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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**

Expand All @@ -51,21 +53,21 @@ Credits
=======

Authors
~~~~~~~
-------

* Odoo SA

Contributors
~~~~~~~~~~~~
------------

* Odoo SA <info@odoo.com>
* David James <david@djdc.net.au>
* Hilar AK <hilarak@gmail.com>
* Nimarosa (Nicolas Rodriguez) <nicolarsande@gmail.com>
* Henrik Norlin (@appstogrow)
- Odoo SA <info@odoo.com>
- David James <david@djdc.net.au>
- Hilar AK <hilarak@gmail.com>
- Nimarosa (Nicolas Rodriguez) <nicolarsande@gmail.com>
- Henrik Norlin (@appstogrow)

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand Down
5 changes: 5 additions & 0 deletions payroll/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- Odoo SA \<<info@odoo.com>\>
- David James \<<david@djdc.net.au>\>
- Hilar AK \<<hilarak@gmail.com>\>
- Nimarosa (Nicolas Rodriguez) \<<nicolarsande@gmail.com>\>
- Henrik Norlin (@appstogrow)
5 changes: 0 additions & 5 deletions payroll/readme/CONTRIBUTORS.rst

This file was deleted.

5 changes: 5 additions & 0 deletions payroll/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 0 additions & 3 deletions payroll/readme/DESCRIPTION.rst

This file was deleted.

4 changes: 3 additions & 1 deletion payroll/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,9 @@ <h1 class="title">Payroll</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/payroll/tree/17.0/payroll"><img alt="OCA/payroll" src="https://img.shields.io/badge/github-OCA%2Fpayroll-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/payroll-17-0/payroll-17-0-payroll"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/payroll&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Manage your employee payroll records.</p>
<p>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.</p>
<p>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.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# generated from manifests external_dependencies
pypdf

0 comments on commit 1832f37

Please sign in to comment.