Account Analytic Distribution Model Recalculate
This module allows you to regenerate the analytic distribution of the journal items, that were generated by the distribution model.
It adds the posibility to add a Start Date and End Date for the distribution models too.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Adds start and end dates to analytic distribution models and lets you recalculate or synchronize the analytic distribution of journal items that were assigned by those models.
This module extends analytic distribution models so each one can have a validity period. You can set a start date and an end date, and Odoo will only apply the model to journal items whose date falls inside that period.
On the distribution model form and list you get a new Recalculation section with a Recalculate toggle and two buttons: Sync Journal Items and Recalculate Journal Items. The buttons only appear when the toggle is on. Sync updates the link between existing journal items and the models that currently match them; Recalculate also refreshes the analytic distribution on those items. Both show a notification telling you how many journal items were updated.
Business rules are enforced automatically: the start date cannot be later than the end date, and you cannot save a model whose conditions and date range overlap another model. Recalculation also requires a partner and an account prefix, and the Recalculate toggle must be enabled.
On journal items, a new Distribution Models field shows which distribution models were applied, visible in the journal items list. A server action named Recalculate Analytic Lines is also available for accounting users.
Depends on
Models and fields (2)
- account.move.line · extends an existing modeldistribution_model_ids (Distribution Models)
- account.analytic.distribution.model · extends an existing modelend_date, start_date, recalculate
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-03Confirmation status: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 19.0
Confirmed on 2026-11-03 in branch 19.0 of OCA/account-analytic.
terminal Installation and usage
OCA documentation · Odoo 19.0Usage
Source · Odoo 19.0- Navigate to Analytic Distribution Models
- Go to Invoicing -> Configuration -> Analytic Distribution Models.
- Create or Edit a Distribution Model
- Create a new distribution model or edit an existing one.
- Set the Start Date and End Date to define the active period for the distribution. Only distributions within this date range will be applied.
- Define filters such as Partner and Account Prefix to control when the model should apply.
- Create an Invoice or Vendor Bill
- Select a customer and an account that match the conditions set in the distribution model.
- If the invoice has a date, the system will use it to filter applicable distribution models; otherwise, it will use the current date.
- Use the Recalculate Function
- Go to Analytic Distribution Models.
- Enable the Recalculate option on the model you want to update.
- Modify the analytic distribution as needed.
- Click the Recalculate button. (Partner and account prefix needs to be set)
- All journal items originally updated using this model, and still within its date range and matching its criteria, will be recalculated, using the current distribution of the model.
Sync Distribution Models with Journal Items
You can use the Sync button to associate all journal items that match the distribution model's criteria.
This is especially useful in the following cases:
- Journal items were created before the distribution model existed.
- The model has been updated or changed, and you want to reassign journal items accordingly.
- You need to sync lines from other entries that now match the model's conditions.
By syncing, the system will disassociate any previous links and reassign journal items based on the current configuration of the distribution model.
No verified information in OCA: Installation, Configuration.
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.
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.