OdooWiki OCA HUB

Account analytic line commercial partner

account_analytic_line_commercial_partner folder_open OCA/account-analytic open_in_new
Accounting & Finance License: AGPL-3

This module adds the Commercial Entity field (technical name commercial_partner_id) to analytic items and allows users to group _Analytic items_ by this field.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Adds a Commercial Entity field to analytic items, automatically filled from the item's partner, and lets users group analytic items by this commercial entity.

This module extends analytic items (the lines used to track costs and revenues by analytic account) with an extra field called Commercial Entity. The value is taken automatically from the partner set on the analytic item: Odoo looks up that partner's commercial entity (the parent company when the partner is a contact of a company) and stores it on the line. Users do not fill it in manually; it is read-only and updates whenever the partner changes.

Where it appears: - In the analytic items list, a new "Commercial Entity" filter is available in the search bar, placed next to the existing partner filter. - Using this filter groups the analytic items by commercial entity, so all lines belonging to contacts of the same company are shown together.

Business behaviour: - The field is stored, so grouping and filtering work on existing data without recomputing on the fly. - No checks, restrictions, emails or scheduled jobs are added; the module only adds the field and the grouping option.

It touches the analytic item model account.analytic.line and the partner model res.partner through the related commercial entity. The change is visible in the accounting/analytic area of Odoo, in the analytic items search view.

Depends on

account
Models and fields (1)
  • account.analytic.line · extends an existing modelcommercial_partner_id

Text generated by AI (DeepSeek) from reading the Odoo 19.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 18.0

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

terminal Installation and usage

OCA documentation · Odoo 19.0
  • Go to Invoicing > Accounting > Analytic Items
  • Group _Analytic items_ by Commercial Entity

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.