OdooWiki OCA HUB

Account Analytic Distribution Widget Rebalance

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

This module adds a "Rebalance" button to the analytic distribution widget, that let's adjust a line percentage to make the plan total exactly 100%.

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

Adds a Rebalance button to the analytic distribution popup so users can automatically adjust a line's percentage to bring the plan total back to 100%.

When you edit an analytic distribution in Odoo, this module adds a small exchange icon in a new column of the distribution popup. Clicking that icon on a line automatically adjusts that line's percentage so the total for its analytic plan becomes exactly 100%.

The button only appears when the line can actually be rebalanced. This is the case when the line is linked to exactly one analytic plan/account. If the line has no plan or more than one plan, the button is hidden and nothing changes.

The adjustment is calculated as the difference between 100% and the current total of the plan, rounded to two extra decimals of precision. The line's percentage is then increased by that amount. No new menus, reports, or database models are added; the change is purely in the analytic distribution widget used across Odoo screens that support analytic distribution (for example, invoice and journal entry lines).

Depends on

analytic

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

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

terminal Installation and usage

OCA documentation · Odoo 17.0

In the analytic distribution popup, click the rebalance button to adjust this line's percentage.

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.