-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
[15.0][ENH] hr_operating_unit: add OU to department #562
base: 15.0
Are you sure you want to change the base?
Conversation
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.
Please, delete filter with domain users. it will see 1 ou only if you add domain user.
name="operating_unit_id" | ||
options="{'no_create': True}" | ||
domain="[('company_id','=', company_id), | ||
('user_ids', 'in', uid)]" |
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.
('user_ids', 'in', uid)]" | |
]" |
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.
@Saran440 I already updated it.
<field name="parent_id" position="after"> | ||
<field | ||
name="operating_unit_id" | ||
domain="[('user_ids', 'in', uid)]" |
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.
domain="[('user_ids', 'in', uid)]" | |
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.
@Saran440 I already updated it.
aa03fe7
to
6ae2335
Compare
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 👍
7138689
to
cbf8048
Compare
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 💯
I am not a user of this module, but this change seems legit. I would recommend to do a migration script to prefill the information in the department. |
@AaronHForgeFlow I think this enhance shouldn't migration script because all department will default 1 OU Example: Case 1 (No script) Case 2 (there is script) Case1 all user can see department What do you think? |
c63367f
to
ce99855
Compare
@Saran440 , I think that makes sense. Would it make sense to put a restriction so the operating unit of the employee cannot be different from the operating unit of the department? In any case I am not using this module and I prefer actual users to discuss this. |
This PR has the |
eb3fe2e
to
3c5f7c0
Compare
3c5f7c0
to
3669f30
Compare
3669f30
to
183732c
Compare
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.
@ps-tubtim as the change is quite major and I am not using this module I would rather like to have more approvals from actual users. Code LG
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
183732c
to
960774b
Compare
960774b
to
a2cdfc1
Compare
Adds an operating unit to the department