-
Notifications
You must be signed in to change notification settings - Fork 23.5k
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
[FIX] stock, sale_stock: qty_at_date widget with Stock location, not … #68044
Conversation
…the whole warehouse (Issue #2484634)
I had a similar issue to version12.0 This was my propose to resolve the issue |
Hi, I agree that location not underneath stock shouldn't be taken into account. This is Odoo logic since always. Thanks for caring on that issue. Joël |
@amoyaux What do you think of this ? IMHO it makes sense. |
Exactly.. this has always been this way, and i agree it would be great to change it as max3903 proposes. |
👍 |
Hi, I understand your use case. However if a location is under WH, it means it's under your warehouse. In our opinion, it's the simplest explanation and easiest to understand. You could use any other location that is not under your warehouse for your use case but I guess you still want to see the correct on hand and forecast quantities (you could use another warehouse with all the product that are not to sell for that since the popup is based on the warehouse on the sale order). Other people, could have use cases where they create a location not under lot_stock_id but still want to use them for sale. The idea is that every report or data should check under the warehouse view location (https://github.com/odoo/odoo/blob/14.0/addons/stock/models/product.py#L243 on hand, forecast quantities). The main location lot_stock_id should only be used for some default values (e.g picking type's locations or some rules). @thomasdeleval |
@max3903 knowing that 14 is no longer updated, is this PR still needed? |
Dear @max3903, Thank you for your contribution but the version 14.0 is no longer supported. We apology if we could not look at your request in time. This is an automated message. |
…the whole warehouse (Issue #2484634)
What are the steps to reproduce your issue?
What is the current behavior that you observe?
What would be your expected behavior in this case?
The location "Not for Sales" is not under WH/Stock so the stock there should not be available for sales.
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr