OdooWiki OCA HUB

Account Analytic Distribution Required

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

This module extends account_analytic_required and adds 2 policies to control the use of analytic distributions. The policies behave as follow

  • never: no analytic account nor analytic distribution allowed
  • always: analytic account required
  • always_plan: analytic_distribution required
  • always_plan_or_account: analytic distribution or analytic account required
  • optional: do what you like,

In any case analytic account and analytic distribution are mutually exclusive.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Adds two new analytic policies to control analytic distributions on journal items: 'Always (analytic distribution)' and 'Always (analytic account or distribution)'. It also enforces that an analytic account and an analytic distribution cannot be used together on the same line.

This module extends the analytic policy options available on account types. In addition to the existing policies, you can now choose 'Always (analytic distribution)' or 'Always (analytic account or distribution)' for an account type.

When you post a journal item (for example, an invoice line or a manual journal entry line) on an account whose type has one of these policies, Odoo checks the line before saving:

  • If the policy is 'Always (analytic distribution)', the line must have an analytic distribution (a set of analytic tags marked as an analytic distribution). Otherwise, a validation error is shown.
  • If the policy is 'Always (analytic account or distribution)', the line must have either an analytic account or an analytic distribution. Otherwise, a validation error is shown.
  • If the policy is 'Never', the line cannot have an analytic distribution. If it does, a validation error is shown.
  • In all cases, an analytic account and an analytic distribution cannot be used together on the same line. If both are present, a validation error is shown.

The checks apply only to lines with a debit or credit amount. The module adds the new policy choices to the account type configuration screen (usually under Accounting > Configuration > Account Types). It also relies on the base module account_analytic_required for the other policies.

Models and fields (2)
  • account.move.line · extends an existing model
  • account.account.type · extends an existing modelproperty_analytic_policy

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

Sources · Odoo 14.0

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

terminal Installation and usage

OCA documentation · Odoo 14.0

To configure this module, you need to:

  • Go to Invoicing > Configuration > Accounting > Account Types and select the correct Policy for analytic account for every account type you want.

To use this module, you need to:

  • Create an invoice and add a line with an account of the same type you are configured above.
  • Add a tag that has an analytical distribution ('Analytic Distribution' field set to true) or an analytic account to that line.
  • When you validate the invoice you get a message if analytic account or distribution are incorrect.

No verified information in OCA: Installation.

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.