-
Notifications
You must be signed in to change notification settings - Fork 23.2k
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
mepe-odoo
wants to merge
5
commits into
odoo:master
Choose a base branch
from
odoo-dev:master-hr-department_visibility-mepe
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
[IMP] hr : allow department's view for every user #159048
mepe-odoo
wants to merge
5
commits into
odoo:master
from
odoo-dev:master-hr-department_visibility-mepe
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mepe-odoo
force-pushed
the
master-hr-department_visibility-mepe
branch
from
March 25, 2024 09:56
aa24f47
to
bd9ab5d
Compare
mepe-odoo
force-pushed
the
master-hr-department_visibility-mepe
branch
2 times, most recently
from
March 25, 2024 14:51
f56a9bb
to
bfed075
Compare
@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 ? |
addons/hr/models/hr_department.py
Outdated
@@ -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): |
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.
check get_view on hr_employee
mepe-odoo
force-pushed
the
master-hr-department_visibility-mepe
branch
from
April 17, 2024 07:10
bfed075
to
6e5599a
Compare
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
force-pushed
the
master-hr-department_visibility-mepe
branch
from
April 26, 2024 14:33
6e5599a
to
c27f191
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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