Skip to content

[19.0][MIG] project_hr: Migration to 19.0#1698

Open
xavierbol wants to merge 37 commits intoOCA:19.0from
xavierbol:19.0-mig-project_hr
Open

[19.0][MIG] project_hr: Migration to 19.0#1698
xavierbol wants to merge 37 commits intoOCA:19.0from
xavierbol:19.0-mig-project_hr

Conversation

@xavierbol
Copy link
Copy Markdown

No description provided.

pedrobaeza and others added 30 commits March 24, 2026 22:51
Project HR
==========

This is a technical module for adding some HR information to projects and
provide technical fields with HR information:

- Employee categories at project and task level.
- Employee linked to the user assigned to a task.
- Employee categories at user level.

These fields can be used later for extra features like task scheduling or
security restrictions.

It also provides some facilities on project management:

* Limit selection of assigned users according selected employee category at
  task level.
* Limit selection of employee categories at task level depending on the
  selected categories at project level. All are shown if no categories at
  project level.

Configuration
=============

For setting employee categories at project level:

1. Go to *Project > Dashboard*.
2. Click on the 3 vertical dots for unfolding options and select "Settings".
3. Put the wanted employee categories on the field "Employee Categories".

For setting employee categories:

1. Go to *Project > Search > Tasks*.
2. Select or create a new task.
3. Put the wanted employee categories on the field "Employee categories".
4. If there's already some employee categories selected at project level, those
   will be the only selectable ones in the task.

Usage
=====

1. Go to *Project > Search > Tasks*.
2. If there's an employee category selected in the task, you will only be able
   to select those users whose employee belongs to that category.

Known issues / Roadmap
======================

* Limit project and task visibility according employee categories through
  overriding security methods (as through record rules is not possible without
  modifying existing ones).
Currently translated at 100.0% (16 of 16 strings)

Translation: project-12.0/project-12.0-project_hr
Translate-URL: https://translation.odoo-community.org/projects/project-12-0/project-12-0-project_hr/de/
Currently translated at 100.0% (16 of 16 strings)

Translation: project-12.0/project-12.0-project_hr
Translate-URL: https://translation.odoo-community.org/projects/project-12-0/project-12-0-project_hr/sl/
Translated using Weblate (Croatian)

Currently translated at 31.2% (5 of 16 strings)

Translation: project-12.0/project-12.0-project_hr
Translate-URL: https://translation.odoo-community.org/projects/project-12-0/project-12-0-project_hr/hr/
[ADD] project_hr runbot

Update project_hr/__manifest__.py

Co-Authored-By: Saran @ Ecosoft <saranl@ecosoft.co.th>

[FIX] pre-commit errors
Currently translated at 100.0% (16 of 16 strings)

Translation: project-13.0/project-13.0-project_hr
Translate-URL: https://translation.odoo-community.org/projects/project-13-0/project-13-0-project_hr/es/
Currently translated at 100.0% (16 of 16 strings)

Translation: project-13.0/project-13.0-project_hr
Translate-URL: https://translation.odoo-community.org/projects/project-13-0/project-13-0-project_hr/ca/
[UPD] Update project_hr.pot

[UPD] README.rst
Translated using Weblate (Italian)

Currently translated at 52.6% (10 of 19 strings)

Translation: project-14.0/project-14.0-project_hr
Translate-URL: https://translation.odoo-community.org/projects/project-14-0/project-14-0-project_hr/it/
TT43237

[UPD] Update project_hr.pot

[UPD] README.rst

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: project-16.0/project-16.0-project_hr
Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_hr/
Currently translated at 100.0% (16 of 16 strings)

Translation: project-16.0/project-16.0-project_hr
Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_hr/it/
Currently translated at 100.0% (16 of 16 strings)

Translation: project-16.0/project-16.0-project_hr
Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_hr/de/

[UPD] README.rst
Currently translated at 100.0% (16 of 16 strings)

Translation: project-16.0/project-16.0-project_hr
Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_hr/es/
Translated using Weblate (Dutch)

Currently translated at 93.7% (15 of 16 strings)

Translation: project-16.0/project-16.0-project_hr
Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_hr/nl/
Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (16 of 16 strings)

Translation: project-16.0/project-16.0-project_hr
Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_hr/pt_BR/
[BOT] post-merge updates
Comment on lines +10 to +15
@api.model_create_multi
def create(self, vals_list):
res = super().create(vals_list)
if any(vals.get("category_ids") for vals in vals_list):
self.env["project.task"].invalidate_model()
return res
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me this code is no longer needed.
I launched the tests without this code and no test failed.

I don't know if someone knows why this code was needed. 🤷🏼‍♂️

Thanks in advance for your help! 🙂

@xavierbol xavierbol mentioned this pull request Mar 24, 2026
41 tasks
Copy link
Copy Markdown

@luisDIXMIT luisDIXMIT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review an tested on runboat, only one minor change.

"summary": "Link HR with project",
"development_status": "Production/Stable",
"version": "18.0.1.0.1",
"version": "19.0.1.0.1",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restart the version to 19.0.1.0.0

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks for your review! 🙂

Copy link
Copy Markdown
Contributor

@BhaveshHeliconia BhaveshHeliconia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functional review LGTM!

@xavierbol xavierbol force-pushed the 19.0-mig-project_hr branch 2 times, most recently from 266dc86 to 9ee5a97 Compare March 29, 2026 16:26
@xavierbol xavierbol force-pushed the 19.0-mig-project_hr branch from 9ee5a97 to c0dc9cb Compare April 4, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.