Skip to content

Commit 4bf96b3

Browse files
[MIG] hr_job_category: Migration to 18.0
1 parent 8c6161c commit 4bf96b3

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

hr_job_category/README.rst

+10-10
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ HR Job Employee Categories
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github
20-
:target: https://github.com/OCA/hr/tree/17.0/hr_job_category
20+
:target: https://github.com/OCA/hr/tree/18.0/hr_job_category
2121
:alt: OCA/hr
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/hr-17-0/hr-17-0-hr_job_category
23+
:target: https://translation.odoo-community.org/projects/hr-18-0/hr-18-0-hr_job_category
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/hr&target_branch=17.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/hr&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -56,7 +56,7 @@ Bug Tracker
5656
Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr/issues>`_.
5757
In case of trouble, please check there if your issue has already been reported.
5858
If you spotted it first, help us to smash it by providing a detailed and welcomed
59-
`feedback <https://github.com/OCA/hr/issues/new?body=module:%20hr_job_category%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
59+
`feedback <https://github.com/OCA/hr/issues/new?body=module:%20hr_job_category%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
6060

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

@@ -73,11 +73,11 @@ Authors
7373
Contributors
7474
------------
7575

76-
- Michael Telahun Makonnen <[email protected]>
77-
- Savoir-faire Linux
78-
- Fekete Mihai <[email protected]>
79-
- Nikul Chaudhary <[email protected]>
80-
- Italo LOPES <[email protected]>
76+
- Michael Telahun Makonnen <[email protected]>
77+
- Savoir-faire Linux
78+
- Fekete Mihai <[email protected]>
79+
- Nikul Chaudhary <[email protected]>
80+
- Italo LOPES <[email protected]>
8181

8282
Maintainers
8383
-----------
@@ -92,6 +92,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
9292
mission is to support the collaborative development of Odoo features and
9393
promote its widespread use.
9494

95-
This module is part of the `OCA/hr <https://github.com/OCA/hr/tree/17.0/hr_job_category>`_ project on GitHub.
95+
This module is part of the `OCA/hr <https://github.com/OCA/hr/tree/18.0/hr_job_category>`_ project on GitHub.
9696

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

hr_job_category/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
{
55
"name": "HR Job Employee Categories",
6-
"version": "17.0.1.0.1",
6+
"version": "18.0.1.0.0",
77
"category": "Generic Modules/Human Resources",
88
"summary": "Adds tags to employee through contract and job position",
99
"author": "Michael Telahun Makonnen <[email protected]>, "

hr_job_category/models/hr.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ def _tag_employees(self, job_id):
5454
if tags_to_add:
5555
employee.write({"category_ids": tags_to_add})
5656

57-
@api.model
58-
def create(self, vals):
59-
res = super().create(vals)
60-
if "job_id" in vals:
61-
res._tag_employees(vals.get("job_id"))
57+
@api.model_create_multi
58+
def create(self, vals_list):
59+
res = super().create(vals_list)
60+
if "job_id" in vals_list:
61+
res._tag_employees(vals_list.get("job_id"))
6262
return res
6363

6464
def write(self, vals):

hr_job_category/static/description/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ <h1 class="title">HR Job Employee Categories</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:bb6a35ee508aab10187b2af31f33313b34800356b7b63b84ca5cf0d4cf711da7
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<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_job_category"><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_job_category"><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>
372+
<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/18.0/hr_job_category"><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-18-0/hr-18-0-hr_job_category"><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=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>This module was written to extend the functionality of jobs to support
374374
tagging employees based on their job positions. For example, all
375375
Supervisors could be attached to the Supervisors category. Define which
@@ -402,7 +402,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
402402
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/hr/issues">GitHub Issues</a>.
403403
In case of trouble, please check there if your issue has already been reported.
404404
If you spotted it first, help us to smash it by providing a detailed and welcomed
405-
<a class="reference external" href="https://github.com/OCA/hr/issues/new?body=module:%20hr_job_category%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
405+
<a class="reference external" href="https://github.com/OCA/hr/issues/new?body=module:%20hr_job_category%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
406406
<p>Do not contact contributors directly about support or help with technical issues.</p>
407407
</div>
408408
<div class="section" id="credits">
@@ -434,7 +434,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
434434
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
435435
mission is to support the collaborative development of Odoo features and
436436
promote its widespread use.</p>
437-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/hr/tree/17.0/hr_job_category">OCA/hr</a> project on GitHub.</p>
437+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/hr/tree/18.0/hr_job_category">OCA/hr</a> project on GitHub.</p>
438438
<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>
439439
</div>
440440
</div>

0 commit comments

Comments
 (0)