Account Analytic Parent
account_analytic_parent · OCA/account-analytic
-
Security25/25No findings
-
Activity25/25Last human commit 4 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 11 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
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
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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
-
child_idsOne2many → account.analytic.accountcomodel_name='account.analytic.account'copy=Trueinverse_name='parent_id'string='Child Accounts' -
complete_nameCharcompute='_compute_complete_name'recursive=Truestore=True -
levelIntegeraggregator=Falsecompute='_compute_level'recursive=Truestore=True -
parent_idMany2one → account.analytic.accountcomodel_name='account.analytic.account'index=Trueondelete='cascade'string='Parent Analytic Account' -
parent_pathCharindex=True
-
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…