purchase_sale_inter_company
Automates intercompany purchasing so that a purchase order to a sibling company generates and keeps in sync the corresponding sale order and related documents in that company.
Key Features
- res.company: Companies can enable creation of sale orders when acting as supplier for intercompany purchases, choose the intercompany sale user, and decide whether those sales auto-validate.
- purchase.order: Approving a purchase to a related company generates a linked sale order in the supplier company with copied dates, notes, delivery address, partner reference, and optional auto-confirmation after currency compatibility and intercompany product checks.
- purchase.order: Cancelling a purchase order cancels its intercompany sale when still a quotation and blocks cancellation once the sale has progressed beyond draft or sent.
- purchase.order.line: Adding lines to a confirmed intercompany purchase also creates the corresponding sale lines unless the sale is cancelled or done.
- purchase.order.line: Changing quantities on intercompany purchase lines propagates to the linked sale lines and refuses changes when the related sale is unconfirmed or locked.
- sale.order: Confirming an intercompany sale writes the sale prices back to the originating purchase lines to keep costs aligned.
- account.move: Intercompany vendor bills link invoice lines to the originating purchase order lines derived from sale lines and post a note referencing the related purchase orders.