diff --git a/hr_employee_document/README.rst b/hr_employee_document/README.rst
index 348a1b72658..caab9bb498c 100644
--- a/hr_employee_document/README.rst
+++ b/hr_employee_document/README.rst
@@ -17,13 +17,13 @@ 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/17.0/hr_employee_document
+ :target: https://github.com/OCA/hr/tree/18.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-17-0/hr-17-0-hr_employee_document
+ :target: https://translation.odoo-community.org/projects/hr-18-0/hr-18-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=17.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/hr&target_branch=18.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -51,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.
@@ -66,22 +66,24 @@ Authors
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)
-- `APSL-Nagarro `__:
+- `APSL-Nagarro `__:
- - Antoni Marroig
+ - Antoni Marroig
+
+- ``Heliconia Solutions Pvt. Ltd. ``\ \_
Maintainers
-----------
@@ -96,6 +98,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 e853a621bfb..4e35a8d7627 100644
--- a/hr_employee_document/__manifest__.py
+++ b/hr_employee_document/__manifest__.py
@@ -5,7 +5,7 @@
{
"name": "HR Employee Document",
- "version": "17.0.1.0.1",
+ "version": "18.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/models/hr_employee.py b/hr_employee_document/models/hr_employee.py
index a2434e3ca9e..9b8ff182d62 100644
--- a/hr_employee_document/models/hr_employee.py
+++ b/hr_employee_document/models/hr_employee.py
@@ -24,7 +24,7 @@ def _compute_document_count(self):
record.document_count = count_dict.get(record.id, 0)
@api.model
- def check_access_rights(self, operation, raise_exception=True):
+ def check_access(self, operation):
"""Return access to the hr.employee model if we pass a specific context,
is a trick to list the attachments related to an employee."""
if (
@@ -38,9 +38,7 @@ def check_access_rights(self, operation, raise_exception=True):
or self in self.env.user.employee_ids
):
return True
- return super().check_access_rights(
- operation=operation, raise_exception=raise_exception
- )
+ return super().check_access(operation=operation)
def action_get_attachment_tree_view(self):
action = self.env["ir.actions.act_window"]._for_xml_id("base.action_attachment")
diff --git a/hr_employee_document/readme/CONTRIBUTORS.md b/hr_employee_document/readme/CONTRIBUTORS.md
index 708029f96d9..0eaca1ec1c1 100644
--- a/hr_employee_document/readme/CONTRIBUTORS.md
+++ b/hr_employee_document/readme/CONTRIBUTORS.md
@@ -13,3 +13,4 @@
- [APSL-Nagarro](https://www.apsl.tech):
- Antoni Marroig \<\>
+- `Heliconia Solutions Pvt. Ltd. `_
diff --git a/hr_employee_document/static/description/index.html b/hr_employee_document/static/description/index.html
index 75fd1608470..23d8cb435cc 100644
--- a/hr_employee_document/static/description/index.html
+++ b/hr_employee_document/static/description/index.html
@@ -8,10 +8,11 @@
/*
:Author: David Goodger (goodger@python.org)
-:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
+:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
+Despite the name, some widely supported CSS2 features are used.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
@@ -274,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }
-pre.code .ln { color: grey; } /* line numbers */
+pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -300,7 +301,7 @@
span.pre {
white-space: pre }
-span.problematic {
+span.problematic, pre.problematic {
color: red }
span.section-subtitle {
@@ -368,7 +369,7 @@ HR Employee Document
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:4773871ade1b1c437434addb02c0950ef49764f8eefe0f0770827db7879f75f5
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
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.
@@ -397,7 +398,7 @@
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.
@@ -433,16 +434,20 @@
Antoni Marroig <amarroig@apsl.net>
+
Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>_
+
This module is maintained by the OCA.
-
+
+
+
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/tests/test_hr_employee_document.py b/hr_employee_document/tests/test_hr_employee_document.py
index e9a7be7c290..744bb566642 100644
--- a/hr_employee_document/tests/test_hr_employee_document.py
+++ b/hr_employee_document/tests/test_hr_employee_document.py
@@ -26,10 +26,10 @@ def setUpClass(cls):
cls.user_2 = new_test_user(cls.env, login="test-user-2")
new_test_user(cls.env, login="test-user-manager", groups="hr.group_hr_user")
cls.employee_1 = cls.env["hr.employee"].create(
- {"name": "Employee #1", "user_id": cls.user_1.id}
+ [{"name": "Employee #1", "user_id": cls.user_1.id}]
)
cls.employee_2 = cls.env["hr.employee"].create(
- {"name": "Employee #2", "user_id": cls.user_2.id}
+ [{"name": "Employee #2", "user_id": cls.user_2.id}]
)
@classmethod
@@ -38,12 +38,15 @@ def _create_attachment(self, employee_id):
self.env["ir.attachment"]
.sudo()
.create(
- {
- "res_model": employee_id._name,
- "res_id": employee_id.id,
- "datas": base64.b64encode(b"My attachment"),
- "name": "doc.txt",
- }
+ [
+ {
+ "res_model": employee_id._name,
+ "res_id": employee_id.id,
+ "datas": base64.b64encode(b"My attachment"),
+ "name": "doc.txt",
+ "public": True,
+ }
+ ]
)
)
diff --git a/hr_employee_document/views/hr_employee.xml b/hr_employee_document/views/hr_employee.xml
index 3e7cd42611e..f7fcda0e73a 100644
--- a/hr_employee_document/views/hr_employee.xml
+++ b/hr_employee_document/views/hr_employee.xml
@@ -20,7 +20,7 @@
-
+