-
-
Notifications
You must be signed in to change notification settings - Fork 209
[16.0][ADD] stock_storage_type_putaway_abc_classification_sale_stock #497
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
base: 16.0
Are you sure you want to change the base?
[16.0][ADD] stock_storage_type_putaway_abc_classification_sale_stock #497
Conversation
a1ed4ee to
21862a1
Compare
21862a1 to
bd41be9
Compare
bd41be9 to
980b444
Compare
| Evaluate the abc classification profile ids in order to retrieve | ||
| the corresponding one. | ||
| """ | ||
| location_level = products.abc_classification_product_level_ids.filtered( |
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.
@rousseldenis products means potentially a recordset with more than one product... Do we have to enforce that the method is always called with 1 product our do we have to take the first product into the recordset as into the initial implementation
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 Your input on this ? IMHO, we indeed could use ensure_one() as we must ensure location_level is 1.
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 can be called when computing the putaway of a stock.package.level for a mixed pallet containing multiple products.
Ideally we should get the main product of the set. first is current implementation but the product with the lowest (alphabetically) abc_storage would be a better implementation.
|
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. |
|
ping @rousseldenis can you reopen this one. |
|
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. |
980b444 to
6830eb3
Compare
| """ | ||
| location_level = products.abc_classification_product_level_ids.filtered( | ||
| lambda level, location=self: level.profile_type == "sale_stock" | ||
| and level.profile_id.warehouse_id == location.warehouse_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.
Where is location.warehouse_id coming from ? A location is not linked to a warehouse
Depends on: