-
-
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
[14.0] shopfloor: add option to order pickings by priority #770
Conversation
0bd9372
to
b077fe2
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
b077fe2
to
8494871
Compare
/ocabot merge minor |
Hey, thanks for contributing! Proceeding to merge this for you. |
@sebalix your merge command was aborted due to failed check(s), which you can inspect on this commit of 14.0-ocabot-merge-pr-770-by-sebalix-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. |
/ocabot rebase |
@sebalix The rebase process failed, because command
|
8494871
to
0fcc5c4
Compare
/ocabot merge minor |
What a great day to merge this nice PR. Let's do it! |
@sebalix your merge command was aborted due to failed check(s), which you can inspect on this commit of 14.0-ocabot-merge-pr-770-by-sebalix-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. |
/ocabot merge minor |
Hey, thanks for contributing! Proceeding to merge this for you. |
@sebalix your merge command was aborted due to failed check(s), which you can inspect on this commit of 14.0-ocabot-merge-pr-770-by-sebalix-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. |
What a great day to merge this nice PR. Let's do it! |
@sebalix your merge command was aborted due to failed check(s), which you can inspect on this commit of 14.0-ocabot-merge-pr-770-by-sebalix-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. |
/ocabot merge minor |
What a great day to merge this nice PR. Let's do it! |
@sebalix your merge command was aborted due to failed check(s), which you can inspect on this commit of 14.0-ocabot-merge-pr-770-by-sebalix-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. |
/ocabot rebase |
@simahawk The rebase process failed, because command
|
@JuMiSanAr can you rebase? |
When I try to push new content to this PR I get:
|
@JuMiSanAr I already rebased manually this branch, you'll have to get the history first then re-rebase :)
|
0fcc5c4
to
c316592
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.
Why do we need an option to allow sorting picking by priority?
In the zone picking, you can sort by date or priority. There is a button to choose the sorting.
Why don't you do the same in checkout? (I guess this concerns manual selection).
Let the user choose on shopfloor. I don't see the benefit of such option.
An option to set the default sorting (date or priority) would be a better approach, wouldn't be?
Coming back to my comment, in the zone picking you sort either by "priority, date" or "location". So in the checkout, it should be sorted by priority, date and there is no need for an option. |
@@ -360,7 +363,10 @@ def _domain_for_list_stock_picking(self): | |||
] | |||
|
|||
def _order_for_list_stock_picking(self): | |||
return "scheduled_date asc, id asc" |
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.
Just change this line to `priority desc, scheduled_date asc, id asc" and drop all the rest that looks overkill
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.
Do I also add the button to choose how to sort them, like in zone_picking? Or just leave it ordered by priority first all the time?
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 just pushed the updated version, without the button.
c316592
to
a221789
Compare
@JuMiSanAr There is a test to fix with the priority |
Closed and replaced by #782 |
This PR adds an option to return the priority number of a picking to the frontend.
In the checkout scenario, we display this priority if available.
It also fixes a bug related to a missing key in shopfloor_menu.xml
ref: cos-4215