Account Analytic Distribution Model Recalculate

account_analytic_distribution_model_recalculate
REPOSITORY
REPOSITORYOCA/account-analytic
GIT
GIThttps://github.com/OCA/account-analytic.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-analytic/tree/17.0/account_analytic_distribution_model_recalculate
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), APSL-Nagarro, Bernat Obrador
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), APSL-Nagarro, Bernat Obrador
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Antoni Marroig Campomar, bobrador
WEBSITE
WEBSITEhttps://github.com/OCA/account-analytic
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:06
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
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.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
account_move_line_form_inherit account.move.line.form.inherit account.move.line xpath Inherits account.view_move_line_tree
inherit_account_analytic_distribution_model_form_view account.analytic.distribution.model.form.inherit account.analytic.distribution.model xpath Inherits analytic.account_analytic_distribution_model_form_view
inherit_account_analytic_distribution_model_tree_view account.analytic.distribution.model.tree.inherit account.analytic.distribution.model xpath Inherits analytic.account_analytic_distribution_model_tree_view
Models touched (2)

New fields (3)
  • end_date Date
  • recalculate Boolean
    default=False help='If checked, you will be able to recalculate\n the analytic lines that where created by this model,\n and still matches the model criteria'
  • start_date Date
Public methods (2)
  • action_recalculate_analytic_lines(self)
    Recalculate the analytic lines that match the distribution model and where generated by himself.
  • action_sync_lines(self)
    Sync the jorurnal items that match the distribution model

New fields (1)
  • distribution_model_id Many2one → account.analytic.distribution.model
    string='Distribution Model' args: 'account.analytic.distribution.model'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)