Skip to content

[16.0][FW] stock_picking_batch_creation: multiple ports from 18.0#1141

Open
lmignon wants to merge 17 commits intoOCA:16.0from
acsone:oca-port-stock_picking_batch_creation-18.0-to-16.0-226635
Open

[16.0][FW] stock_picking_batch_creation: multiple ports from 18.0#1141
lmignon wants to merge 17 commits intoOCA:16.0from
acsone:oca-port-stock_picking_batch_creation-18.0-to-16.0-226635

Conversation

ivantodorovich and others added 13 commits March 9, 2026 10:54
Make it easier to pass custom vals for the created product.
When trying to create a batch picking only with the first availale
transfer, there could be some occurence where that picking does not
fit the dimension of the device and can not be split.

This can happen when all moves from the transfer are oversize compare to
the dimension of the device.

After this change, the module will use the next transfer to create a
batch until it is successfull.
Before this change when searching for a device to use for the batch,
the order of the devices was not guaranteed although important.
And it could cause some batch split not happening.

Now the possible devices will be sorted by their default order, which is
by sequence and name.
In case device has no attribute max_weight set, _init_counters
function will set self._remaining_weight as None, so we need
to consider this possibility before decreasing it when adding
picking.
Allow no max nbr lines
Allow no max volume

Add test
@lmignon lmignon force-pushed the oca-port-stock_picking_batch_creation-18.0-to-16.0-226635 branch from 5a5b44d to 58bf3b5 Compare March 9, 2026 13:13
@lmignon lmignon force-pushed the oca-port-stock_picking_batch_creation-18.0-to-16.0-226635 branch from 504a48d to 16c7640 Compare March 9, 2026 14:16
@lmignon lmignon marked this pull request as ready for review March 11, 2026 07:09
@lmignon lmignon force-pushed the oca-port-stock_picking_batch_creation-18.0-to-16.0-226635 branch from de5c436 to 02399f9 Compare March 11, 2026 07:28
@lmignon
Copy link
Author

lmignon commented Mar 11, 2026

@rousseldenis rousseldenis added the enhancement New feature or request label Mar 12, 2026
@rousseldenis rousseldenis added this to the 16.0 milestone Mar 12, 2026
Copy link

@ivantodorovich ivantodorovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

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

Labels

approved enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants