Skip to content

[19.0][MIG] purchase_sale_inter_company#942

Merged
OCA-git-bot merged 86 commits intoOCA:19.0from
ForgeFlow:19.0-mig-purchase_sale_inter_company
Feb 17, 2026
Merged

[19.0][MIG] purchase_sale_inter_company#942
OCA-git-bot merged 86 commits intoOCA:19.0from
ForgeFlow:19.0-mig-purchase_sale_inter_company

Conversation

@JasminSForgeFlow
Copy link
Contributor

Standard Migration

@ForgeFlow

chafique-delli and others added 30 commits February 11, 2026 06:38
… and auto_purchase_line_id field in sale_order_line
…price in purchase line when validating the sale order
OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex
OCA Transbot updated translations from Transifex
Make tests compatible with OCA#110, for the same reason as the specified in that link.
OCA-git-bot and others added 15 commits February 11, 2026 06:38
…r test

- Function _approve_po: allow passing purchase_to_approve
- Function _create_purchase_order: allow passing products
… sale order is created and confirmed

Install the purchase_sale_stock_inter_company module

Configuration in the companies:
- Sync pickings
- Auto-validate the sale order

Enable Dropshipping and Multi-Step Routes in the inventory settings.
In the Dropship route, set Company A.
In the Buy route, set Company B.

Create a product and, in Company A, enable only the Dropshipping route.
Set the supplier info with the partner of Company B, but do not set another supplier info for Company B (because this product should not automatically generate a purchase in Company B).

Create a sale order with any customer, confirm it, and go to the generated purchase order.
Try to confirm the purchase order, an error will be displayed:

“There is no matching vendor price to generate the purchase order for this product.”

This happens because the sale order in Company B is confirmed automatically, and the code executes with sudo, meaning record rules are not applied. As a result, the Dropship route is considered, although in this case it should be ignored.

After this commit, record rules are correctly applied, and routes are taken into account according to the record rules for the current company.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: multi-company-18.0/multi-company-18.0-purchase_sale_inter_company
Translate-URL: https://translation.odoo-community.org/projects/multi-company-18-0/multi-company-18-0-purchase_sale_inter_company/
Currently translated at 100.0% (26 of 26 strings)

Translation: multi-company-18.0/multi-company-18.0-purchase_sale_inter_company
Translate-URL: https://translation.odoo-community.org/projects/multi-company-18-0/multi-company-18-0-purchase_sale_inter_company/it/
Copy link
Contributor

@AaronHForgeFlow AaronHForgeFlow left a comment

Choose a reason for hiding this comment

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

Functional review with #946

Copy link
Contributor

@LoisRForgeFlow LoisRForgeFlow left a comment

Choose a reason for hiding this comment

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

LGTM

@LoisRForgeFlow
Copy link
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 19.0-ocabot-merge-pr-942-by-LoisRForgeFlow-bump-nobump, awaiting test results.

@LoisRForgeFlow
Copy link
Contributor

/ocabot migration purchase_sale_inter_company

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Feb 17, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request Feb 17, 2026
25 tasks
@OCA-git-bot OCA-git-bot merged commit b6964d3 into OCA:19.0 Feb 17, 2026
5 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@LoisRForgeFlow LoisRForgeFlow deleted the 19.0-mig-purchase_sale_inter_company branch February 17, 2026 07:59
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.