Skip to content

Commit

Permalink
[IMP] hr_employee_document: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
manishkumarbohra committed Nov 14, 2023
1 parent 31844c4 commit 7fba524
Show file tree
Hide file tree
Showing 11 changed files with 64 additions and 49 deletions.
44 changes: 24 additions & 20 deletions hr_employee_document/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,20 @@ HR Employee 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%2Fhr-lightgray.png?logo=github
:target: https://github.com/OCA/hr/tree/16.0/hr_employee_document
:target: https://github.com/OCA/hr/tree/17.0/hr_employee_document
:alt: OCA/hr
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/hr-16-0/hr-16-0-hr_employee_document
:target: https://translation.odoo-community.org/projects/hr-17-0/hr-17-0-hr_employee_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/hr&target_branch=16.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 displays a button on the employee's profile to view linked attachments, both
for HR officers/managers and the own employee, so you can use it as employee document storage.
This module displays a button on the employee's profile to view linked
attachments, both for HR officers/managers and the own employee, so you
can use it as employee document storage.

**Table of contents**

Expand All @@ -39,46 +40,49 @@ for HR officers/managers and the own employee, so you can use it as employee doc
Known issues / Roadmap
======================

This module adds read permission to the employee model; the rest of the model data will
be available to the employee.
If another module grants permissions to the employee model (Pre-officer for example),
I will need to create a rule to extend the basic permissions.
This module adds read permission to the employee model; the rest of the
model data will be available to the employee. If another module grants
permissions to the employee model (Pre-officer for example), I will need
to create a rule to extend the basic permissions.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr/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/hr/issues/new?body=module:%20hr_employee_document%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/hr/issues/new?body=module:%20hr_employee_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
~~~~~~~
-------

* CorporateHub

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

* `CorporateHub <https://corporatehub.eu/>`__
- `CorporateHub <https://corporatehub.eu/>`__

* Alexey Pelykh <[email protected]>
- Alexey Pelykh <[email protected]>

* Tharathip Chaweewongphan <[email protected]>
- Tharathip Chaweewongphan <[email protected]>

* `Tecnativa <https://www.tecnativa.com>`_:
- `Tecnativa <https://www.tecnativa.com>`__:

* Víctor Martínez
- Víctor Martínez

* Alberto Nieto de Pablos <[email protected]> (https://braintec.com)
- Alberto Nieto de Pablos <[email protected]>
(https://braintec.com)

- Manish Bohra <[email protected]>

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

This module is maintained by the OCA.

Expand All @@ -90,6 +94,6 @@ 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.

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion hr_employee_document/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{
"name": "HR Employee Document",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"category": "Human Resources",
"website": "https://github.com/OCA/hr",
"author": "CorporateHub, Odoo Community Association (OCA)",
Expand Down
3 changes: 3 additions & 0 deletions hr_employee_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"
14 changes: 14 additions & 0 deletions hr_employee_document/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- [CorporateHub](https://corporatehub.eu/)

- Alexey Pelykh \<<[email protected]>\>

- Tharathip Chaweewongphan \<<[email protected]>\>

- [Tecnativa](https://www.tecnativa.com):

> - Víctor Martínez
- Alberto Nieto de Pablos \<<[email protected]>\>
(<https://braintec.com>)

- Manish Bohra \<<[email protected]>\>
11 changes: 0 additions & 11 deletions hr_employee_document/readme/CONTRIBUTORS.rst

This file was deleted.

3 changes: 3 additions & 0 deletions hr_employee_document/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This module displays a button on the employee's profile to view linked
attachments, both for HR officers/managers and the own employee, so you
can use it as employee document storage.
2 changes: 0 additions & 2 deletions hr_employee_document/readme/DESCRIPTION.rst

This file was deleted.

4 changes: 4 additions & 0 deletions hr_employee_document/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This module adds read permission to the employee model; the rest of the
model data will be available to the employee. If another module grants
permissions to the employee model (Pre-officer for example), I will need
to create a rule to extend the basic permissions.
4 changes: 0 additions & 4 deletions hr_employee_document/readme/ROADMAP.rst

This file was deleted.

24 changes: 14 additions & 10 deletions hr_employee_document/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,10 @@ <h1 class="title">HR Employee Document</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f6160e17963c83b7fd651427c39dad6e70142869e22b8beafa34bedf0dbddf48
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/hr/tree/16.0/hr_employee_document"><img alt="OCA/hr" src="https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/hr-16-0/hr-16-0-hr_employee_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/hr&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 displays a button on the employee’s profile to view linked attachments, both
for HR officers/managers and the own employee, so you can use it as employee document storage.</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/hr/tree/17.0/hr_employee_document"><img alt="OCA/hr" src="https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/hr-17-0/hr-17-0-hr_employee_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/hr&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 displays a button on the employee’s profile to view linked
attachments, both for HR officers/managers and the own employee, so you
can use it as employee document storage.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -387,17 +388,17 @@ <h1 class="title">HR Employee Document</h1>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-1">Known issues / Roadmap</a></h1>
<p>This module adds read permission to the employee model; the rest of the model data will
be available to the employee.
If another module grants permissions to the employee model (Pre-officer for example),
I will need to create a rule to extend the basic permissions.</p>
<p>This module adds read permission to the employee model; the rest of the
model data will be available to the employee. If another module grants
permissions to the employee model (Pre-officer for example), I will need
to create a rule to extend the basic permissions.</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/hr/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/hr/issues/new?body=module:%20hr_employee_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/hr/issues/new?body=module:%20hr_employee_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 Down Expand Up @@ -425,7 +426,10 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
</ul>
</blockquote>
</li>
<li><p class="first">Alberto Nieto de Pablos &lt;<a class="reference external" href="mailto:alberto.nieto&#64;braintec.com">alberto.nieto&#64;braintec.com</a>&gt; (<a class="reference external" href="https://braintec.com">https://braintec.com</a>)</p>
<li><p class="first">Alberto Nieto de Pablos &lt;<a class="reference external" href="mailto:alberto.nieto&#64;braintec.com">alberto.nieto&#64;braintec.com</a>&gt;
(<a class="reference external" href="https://braintec.com">https://braintec.com</a>)</p>
</li>
<li><p class="first">Manish Bohra &lt;<a class="reference external" href="mailto:manishkumarbohra&#64;outlook.com">manishkumarbohra&#64;outlook.com</a>&gt;</p>
</li>
</ul>
</div>
Expand All @@ -436,7 +440,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/hr/tree/16.0/hr_employee_document">OCA/hr</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/hr/tree/17.0/hr_employee_document">OCA/hr</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_employee_document/views/hr_employee_public.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class="oe_stat_button"
icon="fa-book"
name="action_get_attachment_tree_view"
attrs="{'invisible': [('is_logged', '=', False)]}"
invisible="not is_logged"
type="object"
>
<field name="document_count" widget="statinfo" string="Documents" />
Expand Down

0 comments on commit 7fba524

Please sign in to comment.