-
-
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][IMP] sale_stock_available_to_promise_release mto availability_status #903
base: 16.0
Are you sure you want to change the base?
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.
I would place it even after "restock"
sale_stock_available_to_promise_release/models/sale_order_line.py
Outdated
Show resolved
Hide resolved
But then if you have a unavailable mto product, you end up with restock status. It should be |
sale_stock_available_to_promise_release/models/sale_order_line.py
Outdated
Show resolved
Hide resolved
You're right. Then drop the misplaced comment :) |
92996c6
to
1f6901b
Compare
@sebalix @mmequignon We did this change. Ok for you ? |
# On order product | ||
elif self.is_mto: | ||
availability_status = "on_order" |
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.
shouldn't this be checked first ?
We might have MTO sale order lines availability status set to partial here.
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.
It depends what we want to show to the user first. I would show 1st partial (we are able to deliver some qty), 2nd on_order ( we have no quantity available and need to fully order 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.
If mto, it's on order, period, whether you have stock or not.
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.
If user wants smth else, he changes the route on the so line, and that's 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.
Sale person wants to know if product is available to ship or if action is required to order it. Otherwise this status is useless for him.
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.
If you want to display availability, then product shouldn't be MTO.
@jbaudoux @santostelmo can we discuss this ? I'm not sure to understand what we're solving here...
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.
@mmequignon For standard MTO products, it's on order when SO is draft but the status will update when the product is received and available.
Also, in case of MTO as MTS (MTO route that generates an orderpoint with min/max=0), then if you have stock because someone returned an MTO product, then you see if it is available when placing the SO
@mmequignon good for you? |
This PR has the |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
When stock becomes available for
is_mto
product,, sale order line availability status should reflect that status.Currently nothing happens in that circumstances as the status always stays in
on_order
even if there's stock available.Also standard is already providing a computed field
is_mto
=>_on_order_route
can be dropped.