OdooWiki OCA HUB

Purchase Analytic (MTO)

procurement_mto_analytic folder_open OCA/account-analytic open_in_new
Analytic License: AGPL-3

This module takes account analytic value from sale order to the created purchase order line.

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

When a sale order with an analytic account triggers a purchase order (make-to-order), the analytic account is automatically copied onto the purchase order line, so costs are tracked to the right project.

This module links the analytic account (used for cost/project tracking) from a sale order to the purchase order that is generated to fulfil it.

  • When a sale order line creates a procurement (for example a make-to-order product), the analytic account of the sale order is passed along.
  • When the purchase order line is created from that procurement, the analytic account is written on the purchase order line.
  • The same logic applies to service products purchased through the sale order.
  • When Odoo looks for an existing purchase order to add a new line to, it now also checks that the analytic account matches, so lines with different analytic accounts are not mixed on the same purchase order.

This affects the models sale.order.line, stock.move, purchase.order.line and stock.rule. No new menus or screens are added; the change happens automatically in the background during the sale-to-purchase flow.

Depends on

sale_stockpurchase_stock
Models and fields (3)
  • stock.move · extends an existing model
  • sale.order.line · extends an existing model
  • purchase.order.line · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 15.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 4 confirmed, 5 with no information of 9 versions.

Sources · Odoo 15.0

Confirmed on 2026-11-03 in branch 15.0 of OCA/account-analytic.

terminal Installation and usage

OCA documentation · Odoo 15.0
  • Add any product with Make To Order option enabled into a new sale order.
  • Set Analytic Account.
  • Confirm Sale
  • The generated purchase order line will have this analytic account. They won't be grouped if analytic account is different.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.