OdooWiki OCA HUB

Purchase Analytic Default

account_analytic_default_purchase folder_open OCA/account-analytic open_in_new
Accounting License: AGPL-3

This modules sets default values for analytic accounts in purchases. Fixes issue described here: Odoo issue #22896.

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Automatically fills in the analytic account on purchase order lines based on the product, vendor and company, using the analytic default rules already configured in Odoo.

When you pick a product on a purchase order line, this module looks up the analytic default rules and, if a matching rule exists, fills the analytic account on that line for you. This saves you from selecting the analytic account manually on every purchase line.

The matching is based on the product, the vendor of the purchase order, the current user, today's date and the company of the purchase order. It relies on the analytic default configuration that already exists in Odoo (the account.analytic.default model), so the rules you maintain there are the ones that drive the result.

  • Appears on purchase order lines: the analytic account field is set automatically when the product changes.
  • Only fills the analytic account when a matching default rule is found and that rule has an analytic account defined.
  • Does not overwrite anything if no rule matches.
  • Works together with the standard analytic default and purchase modules, and installs automatically when both are present.

It touches the purchase.order.line model and reads from account.analytic.default. No new menus, reports or scheduled actions are added.

Depends on

account_analytic_defaultpurchase
Models and fields (1)
  • purchase.order.line · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 12.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: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 12.0

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

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

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.