-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
[18.0][ADD] calendar_public_holiday #142
[18.0][ADD] calendar_public_holiday #142
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.
Code and functional review.
IMO the copyright of the corresponding files must be maintained to respect the attribution of all because this module is a “split” of the already existing hr_holidays_public
module.
32696bf
to
aba0190
Compare
thanks for your suggestion, I have updated the copyright. |
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.
Ping @chienandalu
Isn't the migration scripts missing here? |
I'd say that the hr_holidays_public stuff relative to time-off is goint to be still needed so the migration work could be done there, isn't it? |
I think it should be done here, as the public holidays should be transferred here. |
cad993b
to
bd79fb1
Compare
2546a7f
to
642fbe5
Compare
Ping @pedrobaeza can you review 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.
Thanks for the efforts. Apart from the inside comments, other points:
- A plain user shouldn't be able to create nor modify public holidays as it's happening right now (try with demo user in runboat).
- I think the menus should be inside Calendar > Configuration.
642fbe5
to
b906adf
Compare
Hi @pedrobaeza, since this module no longer depends on |
Yes, but they shouldn't follow the same rules, as public holidays are defined by managers, not by plain users. When adding |
b906adf
to
7b016e0
Compare
Ok, thanks for your advice and clarification. I have updated the permission group on the models of this module. |
Don't remove the super-menu "Public Holidays". Just host it inside the "Configuration" one. Please keep also the empty lines out. |
7b016e0
to
d54b079
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.
Thank you!
/ocabot merge nobump
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at a958c9b. Thanks a lot for contributing to OCA. ❤️ |
context:
hr_holidays_public
module into new module so that it can be used in other contexts and no longer depends on HR.note:
hr.holidays.public
model and related models tocalendar.public.holiday
to match the Calendar repo.