-
Notifications
You must be signed in to change notification settings - Fork 17
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
[12.0][IMP] allow different workday lengths #323
[12.0][IMP] allow different workday lengths #323
Conversation
* allow contracts with different workday lengths for different employees of the same company. * use only the resource.calendar of the contracts to define the length of a workday, instead of using the resource.calendar of the company. * improve compatibility with hr_holidays. * test and fix access rights.
4ca25c1
to
07aa5f0
Compare
07aa5f0
to
d1ddf95
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.
Some comments and change requests. I'm not 100% sure I grok the implementation, but I understand the tests, so that's good.
all_attendances = self.attendance_ids | ||
if not all_attendances: |
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.
all_attendances = self.attendance_ids | |
if not all_attendances: | |
self.ensure_one() | |
all_attendances = self.attendance_ids | |
if not all_attendances: |
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.
how do you decide whether to call self.ensure_one()
or not? because this could be used everywhere.
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.
I have frankly no idea.
By splitting this method up, it will be easier for me to do some extension work elsewhere. Signed-off-by: Carmen Bianca BAKKER <[email protected]>
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.
Did a second pass. Some comments.
06ecfc4
to
010e92a
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, amazing work :)
…eger id Signed-off-by: Carmen Bianca BAKKER <[email protected]>
avoid error with contracts without a resource_calendar_id.
a6516d0
to
7338dbd
Compare
/ocabot merge major |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at cfddd49. Thanks a lot for contributing to coopiteasy. ❤️ |
description
odoo task
t12627