-
-
Notifications
You must be signed in to change notification settings - Fork 196
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_plan #695
Conversation
5ebb109
to
4a70821
Compare
b488d3f
to
b9b4c75
Compare
|
||
def action_launch(self): | ||
self.ensure_one() | ||
channels_to_launch = self.preparation_plan_id._get_channels_to_launch() |
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.
@jbaudoux In our case, the channels to launch could be filtered according to additional criteria on the wizard. The _get_channels_to_launch
method should therefore be provided by the wizard
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.
This was done on purpose as the plan should define the rules and not the wizard. That's the purpose of having a plan. Otherwise you have half a plan and the wizard is providing the missing other half. This is not ideal.
I keep it like that for now.
f5da70f
to
95029a9
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.
LG
95029a9
to
47944ce
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 but the missing handling of the wizard method
@lmignon good for you? |
The problem is that these changes are not yet tested on our side. JE extracted this code from our project but didn't end the PR to use it back. We've to validate that we can still covers our needs with the change he made into the implementation. |
Good to know, thanks for your feedback :) Have nice weekend! |
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
26f913e
to
145d1c5
Compare
rebased |
@grindtildeath Can you check why |
@jbaudoux The test is failing because of this SQL query: https://github.com/OCA/wms/blob/16.0/stock_release_channel_process_end_time/models/stock_picking.py#L40-L56 Basically the query is returning pickings having a scheduled date that is before any channel that has a process_end_date defined. As we are adding new channels as demo data, these channels will have a process_end_date defined to today when the module is installed, and as tests are frozen in time in 2023, the pickings will always be scheduled before a channel. I'm not sure what is the right way to fix this as it took me already quite a while to figure out what's wrong and why 2023/01/28 was before 2024/02/27 😵 EDIT: please check jbaudoux#3 |
e534373
to
c1cdc13
Compare
rebased |
c1cdc13
to
42ad1f2
Compare
I fixed test in stock_release_channel_propagate_channel_picking. Now it's again green :) |
@lmignon , little ping, is it good for you ? |
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
/ocabot merge minor |
1 similar comment
/ocabot merge minor |
Hey, thanks for contributing! Proceeding to merge this for you. |
@jbaudoux your merge command was aborted due to failed check(s), which you can inspect on this commit of 16.0-ocabot-merge-pr-695-by-jbaudoux-bump-minor. After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red. |
3893388
to
3bff483
Compare
Add preparation weekdays to stock.release.channel
Fix failing test when more channels are loaded
3bff483
to
107c990
Compare
Fix failing tests when demo channels are already asleep
1c4c634
to
824be0a
Compare
/ocabot merge minor |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at 47be667. Thanks a lot for contributing to OCA. ❤️ |
Make a wake-up plan of release channels
cc @lmignon @sbejaoui @rousseldenis @sebalix @TDu