Skip to content

Conversation

@rousseldenis rousseldenis added this to the 16.0 milestone Nov 16, 2022
@rousseldenis rousseldenis force-pushed the 16.0-add-stock_storage_type_abc_classification-dro branch 2 times, most recently from a1ed4ee to 21862a1 Compare November 16, 2022 14:48
@rousseldenis rousseldenis force-pushed the 16.0-add-stock_storage_type_abc_classification-dro branch from 21862a1 to bd41be9 Compare November 22, 2022 13:08
@rousseldenis rousseldenis changed the title [ADD] stock_storage_type_putaway_abc_classification [ADD] stock_storage_type_putaway_abc_classification_sale_stock Nov 22, 2022
@rousseldenis rousseldenis force-pushed the 16.0-add-stock_storage_type_abc_classification-dro branch from bd41be9 to 980b444 Compare November 22, 2022 13:19
Evaluate the abc classification profile ids in order to retrieve
the corresponding one.
"""
location_level = products.abc_classification_product_level_ids.filtered(
Copy link

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

Copy link
Author

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.

Copy link
Contributor

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.

@github-actions
Copy link

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.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 26, 2023
@github-actions github-actions bot closed this Apr 30, 2023
@rousseldenis rousseldenis reopened this May 16, 2023
@jbaudoux jbaudoux changed the title [ADD] stock_storage_type_putaway_abc_classification_sale_stock [16.0][ADD] stock_storage_type_putaway_abc_classification_sale_stock May 29, 2023
@github-actions github-actions bot closed this Jul 2, 2023
@lmignon
Copy link

lmignon commented Jul 11, 2023

ping @rousseldenis can you reopen this one.

@rousseldenis rousseldenis reopened this Jul 20, 2023
@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jul 23, 2023
@github-actions
Copy link

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.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Nov 26, 2023
@github-actions github-actions bot closed this Dec 31, 2023
@rousseldenis rousseldenis reopened this Feb 21, 2024
@github-actions github-actions bot closed this Mar 24, 2024
@rousseldenis rousseldenis added no stale Use this label to prevent the automated stale action from closing this PR/Issue. and removed stale PR/Issue without recent activity, it'll be soon closed automatically. labels May 8, 2024
@rousseldenis rousseldenis reopened this May 8, 2024
@rousseldenis rousseldenis force-pushed the 16.0-add-stock_storage_type_abc_classification-dro branch from 980b444 to 6830eb3 Compare May 8, 2024 10:20
"""
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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review no stale Use this label to prevent the automated stale action from closing this PR/Issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants