Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 4 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 11 Odoo series since 9.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.21 MB
Module directory on disk
Code analysis 0 migration notes 1 model 2 views 0 HTTP endpoints

Description

This module reintroduces the hierarchy to the analytic accounts as it was in previous versions of Odoo. This module is a base module for other modules to manage the hierarchy concept in analytics.

It also exposes a computed Level field expressing the depth of each account within its subtree: level 0 for a leaf account (no children), level 1 for a parent whose children are all leaves, level 2 for a grandparent...

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 2

XML IDNameModelTypeStatus
view_account_analytic_account_form account.analytic.account.form account.analytic.account form Inherits analytic.view_account_analytic_account_form
view_account_analytic_account_list account.analytic.account.list account.analytic.account list Inherits analytic.view_account_analytic_account_list

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 1

New fields (5)
  • child_ids One2many → account.analytic.account
    comodel_name='account.analytic.account' copy=True inverse_name='parent_id' string='Child Accounts'
  • complete_name Char
    compute='_compute_complete_name' recursive=True store=True
  • level Integer
    aggregator=False compute='_compute_level' recursive=True store=True
  • parent_id Many2one → account.analytic.account
    comodel_name='account.analytic.account' index=True ondelete='cascade' string='Parent Analytic Account'
  • parent_path Char
    index=True
Public methods (3)
  • check_parent_active(self)
    @api.constrains('active')
  • check_recursion(self)
    @api.constrains('parent_id')
  • write(self, vals)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…