-
-
Notifications
You must be signed in to change notification settings - Fork 827
[15.0][MIG] project_hr: Migration to 15.0 #1058
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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/
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 <[email protected]> [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/
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/
@pedrobaeza @sbidoul , how we can solve this pre-commit error? |
@chandni299 run |
I have done it for you on #1059 |
0be69cb
to
0c4459b
Compare
It works :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
project_hr/models/project_task.py
Outdated
class ProjectTask(models.Model): | ||
_inherit = "project.task" | ||
|
||
employee_id = fields.Many2one( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This field should be changed as well as the user_ids
to many2many employee_ids
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @pedrobaeza , Thank you for your review.
I have added the requested changes. You can have a look.
@chandni299 Can you make the changes Pedro suggested? |
Sure. Done |
/ocabot migration project_hr |
Thanks for the changes, @chandni299. Please squash the latest commit with the migration one, as the change to m2m is part of the migration itself. |
792aaf6
to
21b4255
Compare
The latest commit is squashed with the migration one @pedrobaeza |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
/ocabot merge nobump
This PR looks fantastic, let's merge it! |
This PR has the |
Congratulations, your PR was merged at 4e9094c. Thanks a lot for contributing to OCA. ❤️ |
No description provided.