Skip to content

[16.0][IMP] stock_available_to_promise_release: Defer pull for internal picking types - #1295

Open
santostelmo wants to merge 1 commit into
OCA:16.0from
camptocamp:16.0-imp-stock_available_to_promise_release-internal-picking_type-need_release
Open

santostelmo wants to merge 1 commit into
OCA:16.0from
camptocamp:16.0-imp-stock_available_to_promise_release-internal-picking_type-need_release

Conversation

@santostelmo

@santostelmo santostelmo commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

We don't want to defer pull for rules related with receptions. Only internal operations

@OCA-git-bot OCA-git-bot added series:16.0 mod:stock_available_to_promise_release Module stock_available_to_promise_release labels Oct 6, 2026
@santostelmo santostelmo changed the title [16.0][IMP] Defer pull for internal picking types [16.0][IMP] stock_available_to_promise_release: Defer pull for internal picking types Oct 6, 2026

@jbaudoux jbaudoux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jbaudoux

jbaudoux commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

cc @lmignon @mt-software-de

and rule.available_to_promise_defer_pull
# We still want to create the first part of the chain
and not rule.picking_type_id.code == "outgoing"
and rule.picking_type_id.code == "internal"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM. Could you create a test for what you want to exclude?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, a small inter-warehouse replenishment setup to prevent any regression in the future

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added unit test

@santostelmo
santostelmo force-pushed the 16.0-imp-stock_available_to_promise_release-internal-picking_type-need_release branch from 105001f to 6887b12 Compare October 7, 2026 07:14
@santostelmo
santostelmo force-pushed the 16.0-imp-stock_available_to_promise_release-internal-picking_type-need_release branch from 6887b12 to 715889e Compare October 7, 2026 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:stock_available_to_promise_release Module stock_available_to_promise_release series:16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants