Skip to content

Conversation

@mmequignon
Copy link
Member

@mmequignon mmequignon commented Jul 11, 2025

@mmequignon mmequignon force-pushed the 18.0-stock_available_to_promise_release_carrier_alternative branch 2 times, most recently from 64c97f1 to 9ac776e Compare July 15, 2025 15:31
@simahawk simahawk changed the title [MIG][18.0] stock_available_to_promise_release_carrier_alternative [MIG][18.0] stock_available_to_promise_release_carrier_alternative (was delivery_carrier_preference) Jul 16, 2025
Copy link
Contributor

@jbaudoux jbaudoux left a comment

Choose a reason for hiding this comment

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

There is nothing left from delivery_carrier_preference. I don't think it makes sense to consider it as a migration of that module especially that there is no migration script.

I would drop the complete history from delivery_carrier_preference

@mmequignon mmequignon force-pushed the 18.0-stock_available_to_promise_release_carrier_alternative branch from 9ac776e to b1229bb Compare July 16, 2025 11:44
@mmequignon mmequignon force-pushed the 18.0-stock_available_to_promise_release_carrier_alternative branch 7 times, most recently from 16b44b2 to 6ac79b6 Compare July 23, 2025 07:56
@jbaudoux jbaudoux force-pushed the 18.0-stock_available_to_promise_release_carrier_alternative branch from 5fbec27 to bc73477 Compare October 25, 2025 11:56
@jbaudoux
Copy link
Contributor

jbaudoux commented Oct 25, 2025

I removed the estimated weight and volume that is not necessary to compute the alternative carrier as the moves are put in a new picking to test weight and volume. Feature has been saved in this new module:

@jbaudoux jbaudoux force-pushed the 18.0-stock_available_to_promise_release_carrier_alternative branch from bc73477 to edbaa9f Compare October 25, 2025 12:17
Comment on lines 24 to 34
picking_domain = fields.Char(
default="[]",
help="Domain to restrict application of this preference "
"for carrier selection on pickings",
)

def _match_picking(self, picking):
res = super()._match_picking(picking)
if domain := const_eval(self.picking_domain):
return res and bool(picking.filtered_domain(domain))
return res
Copy link
Contributor

Choose a reason for hiding this comment

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

I would drop this from this module. If there is an additional restriction, it should not only apply here but also on sales carrier selection. Also the module delivery_carrier_picking_valid is already responsible of validating the carrier. This module should only rely on that other module.

Copy link
Contributor

Choose a reason for hiding this comment

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

dropped

@jbaudoux jbaudoux force-pushed the 18.0-stock_available_to_promise_release_carrier_alternative branch from edbaa9f to d73aef6 Compare October 25, 2025 14:56
@jbaudoux
Copy link
Contributor

Add support to manage the route of the new carrier

grindtildeath and others added 6 commits October 29, 2025 10:43
Dropped dependency on delivery_total_weight_from_packaging. No need for
what is done here.
And reviewed tests and coverage.
… route

Apply the carrier route when the alternative has routes set
Apply the alternative carrier before updating the date as the carrier
may have an impact on the new date (see stock_release_channel module).

Allow to control what is further released after the carrier has been
changed.
@jbaudoux jbaudoux force-pushed the 18.0-stock_available_to_promise_release_carrier_alternative branch 2 times, most recently from df10db7 to 5509b53 Compare October 29, 2025 09:47
Fix unreleasing and then releasing again: keep move in already released delivery.
Also if picking contains a cancel move.

Co-author: Jacques-Etienne Baudoux (BCIM) <[email protected]>
@jbaudoux jbaudoux force-pushed the 18.0-stock_available_to_promise_release_carrier_alternative branch from 5509b53 to c22424c Compare October 29, 2025 09:49
@jbaudoux jbaudoux force-pushed the 18.0-stock_available_to_promise_release_carrier_alternative branch from c22424c to 6c65997 Compare October 29, 2025 09:52
Fix tests after change on backorder links with split order in stock_available_to_promise_release
Copy link
Contributor

@jbaudoux jbaudoux left a comment

Choose a reason for hiding this comment

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

@simahawk Can you update your review on this one? For me, all issues have been solved

@simahawk
Copy link
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-17-by-simahawk-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit d48edd5 into OCA:18.0 Oct 30, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 2cccae1. Thanks a lot for contributing to OCA. ❤️

rousseldenis pushed a commit to acsone/stock-logistics-reservation that referenced this pull request Nov 8, 2025
Signed-off-by sebalix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants