Skip to content
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

[IMP] hr : allow department's view for every user #159048

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mepe-odoo
Copy link
Contributor

@mepe-odoo mepe-odoo commented Mar 25, 2024

With this commit, every user will be able to see department section even if he doesn't have any hr's right to help him to see what's happening in his department.

task: 3817672


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@mepe-odoo mepe-odoo force-pushed the master-hr-department_visibility-mepe branch from aa24f47 to bd9ab5d Compare March 25, 2024 09:56
@robodoo
Copy link
Contributor

robodoo commented Mar 25, 2024

Pull request status dashboard.

@C3POdoo C3POdoo added the RD research & development, internal work label Mar 25, 2024
@mepe-odoo mepe-odoo force-pushed the master-hr-department_visibility-mepe branch 2 times, most recently from f56a9bb to bfed075 Compare March 25, 2024 14:51
@jugj-odoo
Copy link
Contributor

@mepe-odoo hello, maybe i'm wrong but this feels a bit hacky, can't we achieve the same result with implied groups and ir rules ?

@@ -132,6 +141,28 @@ def action_plan_from_department(self):
action['context'] = {'default_department_id': self.id, 'search_default_department_id': self.id}
return action

def action_employee_from_department(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

check get_view on hr_employee

@mepe-odoo mepe-odoo force-pushed the master-hr-department_visibility-mepe branch from bfed075 to 6e5599a Compare April 17, 2024 07:10
With this commit, every manager will be able to see department section even
if he doesn't have any hr's right to help him to see what's happening
in his department.

task: 3817672
@mepe-odoo mepe-odoo force-pushed the master-hr-department_visibility-mepe branch from 6e5599a to c27f191 Compare April 26, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants