diff --git a/hr_employee_document/README.rst b/hr_employee_document/README.rst index 997586227f3..78604b90627 100644 --- a/hr_employee_document/README.rst +++ b/hr_employee_document/README.rst @@ -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** @@ -39,10 +40,10 @@ 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 =========== @@ -50,7 +51,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. @@ -58,27 +59,30 @@ Credits ======= Authors -~~~~~~~ +------- * CorporateHub Contributors -~~~~~~~~~~~~ +------------ -* `CorporateHub `__ +- `CorporateHub `__ - * Alexey Pelykh + - Alexey Pelykh -* Tharathip Chaweewongphan +- Tharathip Chaweewongphan -* `Tecnativa `_: +- `Tecnativa `__: - * Víctor Martínez + - Víctor Martínez -* Alberto Nieto de Pablos (https://braintec.com) +- Alberto Nieto de Pablos + (https://braintec.com) + +- Manish Bohra Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -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 `_ project on GitHub. +This module is part of the `OCA/hr `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/hr_employee_document/__manifest__.py b/hr_employee_document/__manifest__.py index 81bc3827436..34c2442d01e 100644 --- a/hr_employee_document/__manifest__.py +++ b/hr_employee_document/__manifest__.py @@ -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)", diff --git a/hr_employee_document/pyproject.toml b/hr_employee_document/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/hr_employee_document/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/hr_employee_document/readme/CONTRIBUTORS.md b/hr_employee_document/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..2f38535672c --- /dev/null +++ b/hr_employee_document/readme/CONTRIBUTORS.md @@ -0,0 +1,14 @@ +- [CorporateHub](https://corporatehub.eu/) + + - Alexey Pelykh \<\> + +- Tharathip Chaweewongphan \<\> + +- [Tecnativa](https://www.tecnativa.com): + + > - Víctor Martínez + +- Alberto Nieto de Pablos \<\> + () + +- Manish Bohra \<\> diff --git a/hr_employee_document/readme/CONTRIBUTORS.rst b/hr_employee_document/readme/CONTRIBUTORS.rst deleted file mode 100644 index f6e0b3aedb4..00000000000 --- a/hr_employee_document/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,11 +0,0 @@ -* `CorporateHub `__ - - * Alexey Pelykh - -* Tharathip Chaweewongphan - -* `Tecnativa `_: - - * Víctor Martínez - -* Alberto Nieto de Pablos (https://braintec.com) diff --git a/hr_employee_document/readme/DESCRIPTION.md b/hr_employee_document/readme/DESCRIPTION.md new file mode 100644 index 00000000000..7c3e055625c --- /dev/null +++ b/hr_employee_document/readme/DESCRIPTION.md @@ -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. diff --git a/hr_employee_document/readme/DESCRIPTION.rst b/hr_employee_document/readme/DESCRIPTION.rst deleted file mode 100644 index b04d3fb95c1..00000000000 --- a/hr_employee_document/readme/DESCRIPTION.rst +++ /dev/null @@ -1,2 +0,0 @@ -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. diff --git a/hr_employee_document/readme/ROADMAP.md b/hr_employee_document/readme/ROADMAP.md new file mode 100644 index 00000000000..c321b9db356 --- /dev/null +++ b/hr_employee_document/readme/ROADMAP.md @@ -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. diff --git a/hr_employee_document/readme/ROADMAP.rst b/hr_employee_document/readme/ROADMAP.rst deleted file mode 100644 index 9b0c08f2b67..00000000000 --- a/hr_employee_document/readme/ROADMAP.rst +++ /dev/null @@ -1,4 +0,0 @@ -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. diff --git a/hr_employee_document/static/description/index.html b/hr_employee_document/static/description/index.html index ed9aa63c200..c7cc274ecf2 100644 --- a/hr_employee_document/static/description/index.html +++ b/hr_employee_document/static/description/index.html @@ -369,9 +369,10 @@

HR Employee Document

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:f6160e17963c83b7fd651427c39dad6e70142869e22b8beafa34bedf0dbddf48 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

-

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.

+

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

+

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

    @@ -387,17 +388,17 @@

    HR Employee Document

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. 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.

@@ -425,7 +426,10 @@

Contributors

-
  • Alberto Nieto de Pablos <alberto.nieto@braintec.com> (https://braintec.com)

    +
  • Alberto Nieto de Pablos <alberto.nieto@braintec.com> +(https://braintec.com)

    +
  • +
  • Manish Bohra <manishkumarbohra@outlook.com>

  • @@ -436,7 +440,7 @@

    Maintainers

    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 project on GitHub.

    +

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

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

    diff --git a/hr_employee_document/views/hr_employee_public.xml b/hr_employee_document/views/hr_employee_public.xml index 307a257586c..13c21cee604 100644 --- a/hr_employee_document/views/hr_employee_public.xml +++ b/hr_employee_document/views/hr_employee_public.xml @@ -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" >