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
[14.0][IMP] resource_booking: Allow a booking to span more than one calendar day #77
[14.0][IMP] resource_booking: Allow a booking to span more than one calendar day #77
Conversation
Hi @pedrobaeza, |
87755a8
to
ce78001
Compare
Ready for review after a fair amount of tinkering. |
@huguesdk I tried hacking the same result by forcibly setting |
da716b0
to
d8bca0e
Compare
9225db9
to
60988d3
Compare
5929fa0
to
2f8c12e
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.
thanks for this. it’s a little sad that this is not handled correctly by the core resource
module. adding a comment explaining how this is a workaround for those limitations would be useful (resource.calendar.attendance
cannot end at midnight so cannot end exactly at the end of the day (only a few milliseconds before)).
# Just ignore those items and pretend they don't exist; all the | ||
# other items appear to make sense. | ||
if item1_date < item0_date: | ||
continue |
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.
adding a test for this would be useful.
ea915b6
to
15fc105
Compare
15fc105
to
61aca4f
Compare
This is now rebased on top of #80. Will need to merge that PR before merging this. |
61aca4f
to
0a1c33d
Compare
Now that #80 is merged, I rebased this on top of 14.0. |
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
LGTM |
Please squash commits a bit and check pre-commit. |
…r day Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be>
Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be>
0a1c33d
to
267fb8d
Compare
Rebased on top of 14.0. Commits squashed. pre-commit works locally. |
/ocabot merge patch You can now fw-port it to upper versions. |
On my way to merge this fine PR! |
Congratulations, your PR was merged at 3da4759. Thanks a lot for contributing to OCA. ❤️ |
This PR solves two issues:
Internal task: https://gestion.coopiteasy.be/web#id=9834&action=475&active_id=434&model=project.task&view_type=form&menu_id=536