Skip to content

[19.0][MIG] stock_request_partner: Migration to 19.0 - #99

Open
alan196 wants to merge 12 commits into
OCA:19.0from
Jarsa-dev:19.0-mig-stock_request_partner
Open

[19.0][MIG] stock_request_partner: Migration to 19.0#99
alan196 wants to merge 12 commits into
OCA:19.0from
Jarsa-dev:19.0-mig-stock_request_partner

Conversation

@alan196

@alan196 alan196 commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Migration of stock_request_partner to 19.0.

Supersedes #59 (closed as stale). Based on the module history from the 17.0 branch, including the fix to allow saving the partner on a stock request created from an order.

Changes for 19.0:

  • Adapt _prepare_procurement_values override: procurement.group was replaced by stock.reference in core, so the partner is now passed directly in the procurement values and propagated to the picking.
  • Views: treelist, update stock_request_ids context to match the 19.0 base view (default_reference_ids, default_route_id) plus default_partner_id.
  • Tests: migrate to setUpClass, create partners instead of relying on demo data, use a shared stock.reference for the multi-line order test (required in 19.0 to group moves into a single picking) and assert the partner on the resulting picking.
  • Use self.env._() and remove the old 17.0 migration script.

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

Labels

mod:stock_request_partner Module stock_request_partner series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants