-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[FIX] hr: fixed the plan smart button #190938
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
[FIX] hr: fixed the plan smart button #190938
Conversation
2efd062
to
03f1287
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.
Hello Yash, thanks for your work. I've left one comment.
03f1287
to
ff8c166
Compare
addons/hr/models/hr_department.py
Outdated
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.
The domain should have the '|' right?
domain = [ | |
('department_id', '=', False), | |
('department_id', '=', self.id), | |
] | |
domain = [ | |
'|', | |
('department_id', '=', False), | |
('department_id', '=', self.id), | |
] |
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.
Opps 🙈
I've fixed it 😇
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 Yash, the number of plans on the button on the department form view doesn't take into account the plans whose department is False. I know it wasn't part of the spec but I've discussed that with Sumanth and given that we show these plans, then the count should be updated.
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.
Done 👍
84ff9f0
to
70f70d7
Compare
70f70d7
to
3d21ba9
Compare
In this commit, - Set the default department for the Plans smart button. - If there is no plan, it will open the form view. Task-4356557
3d21ba9
to
6fb298b
Compare
@robodoo r+ |
In this commit, - Set the default department for the Plans smart button. - If there is no plan, it will open the form view. Task-4356557 closes #190938 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
@yava-odoo @tivisse staging failed: ci/runbot on b47d0b74595d1142eb857950a6f63b42c91ad630 (view more at https://runbot.odoo.com/runbot/build/74443264) |
@robodoo retry |
In this commit, - Set the default department for the Plans smart button. - If there is no plan, it will open the form view. Task-4356557 closes #190938 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
In this PR,
Task-4356557