-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
[16.0][ADD] stock_release_channel_partner_public_holidays #751
[16.0][ADD] stock_release_channel_partner_public_holidays #751
Conversation
afc5a57
to
57f536b
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.
not an expert but lgtm
stock_release_channel_partner_public_holidays/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
stock_release_channel_partner_public_holidays/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
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 can be simplified
2260259
to
be84acc
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
be84acc
to
4168aa9
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.
Overall LG, some minor glitches found but can be fixed in another round.
Rebased and dropped test req.
Returns True if shipment_date is a public holiday | ||
:return: bool | ||
""" | ||
self.ensure_one() |
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.
there's no need to call ensure_one for a private method that is used only in this loop
("date", "=", shipment_date), | ||
] | ||
hhplo = self.env["hr.holidays.public.line"] | ||
holidays_line = hhplo.search(domain, limit=1, order="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.
should use search_count instead
@@ -0,0 +1 @@ | |||
* Nguyen Minh Chien <[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.
JE missing
/ocabot merge nobump |
This PR looks fantastic, let's merge it! |
This PR has the |
Congratulations, your PR was merged at 8c050b2. Thanks a lot for contributing to OCA. ❤️ |
Depends on: