Account Consolidation
account_consolidation_oca · OCA/account-consolidation
Replaces
account_consolidation (14.0) Health
38/100
poor
-
Security22/251 minor finding
-
Activity6/25Last human commit 35 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
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.29 MB
Module directory on disk
Code analysis
6 migration notes
9 models
9 views
0 HTTP endpoints
Migration considerations
AccountAccount— Migrating to 17.0: `name_get` no longer feeds `display_name`: override `_compute_display_name` instead. migration-name-get · sourceCompanyConsolidationProfile— Migrating to 17.0: `name_get` no longer feeds `display_name`: override `_compute_display_name` instead. migration-name-get · sourceres_config_settings_view_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_company_consolidation_profile_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceview_consolidation_check_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE account_move_line SET consolidated = False WHERE consolidated = True;` - re-check the table/column names still match after upgrading. (2 occurrences in this file) migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 9
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
res_config_settings_view_form |
res.config.settings.view.form.inherit.account.consolidation | res.config.settings | form | Inherits account.res_config_settings_view_form |
view_account_consolidation_form |
account.account.consolidation.form | account.account | form | Inherits account.view_account_form |
view_company_consolidation_company_profile |
company.consolidation.profile | res.company | form | Inherits base.view_company_form |
view_company_consolidation_profile_form |
company.consolidation.profile.view | company.consolidation.profile | form | New |
view_company_consolidation_profile_tree |
company.consolidation.profile.view | company.consolidation.profile | tree | New |
view_consolidation_check_form |
account.consolidation.check.form | account.consolidation.check | form | New |
view_consolidation_consolidate_form |
account.consolidation.consolidate.form | account.consolidation.consolidate | form | New |
view_move_form |
account.move.form | account.move | form | Inherits account.view_move_form |
view_move_line_tree |
account.move.line.tree.conso | account.move.line | tree | Inherits account.view_move_line_tree |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 9
New fields (2)
-
consolidation_account_idMany2one → account.accountcomodel_name='account.account'domain="[('company_id', '=', consolidation_company_id)]"help='Consolidation moves will be generated on this account'string='Consolidation account' -
consolidation_company_idMany2one → res.companycomodel_name='res.company'compute='_compute_conso_company'store=True
-
name_get(self)@api.depends('name', 'code')Display the account company if the user is connected to it..
New fields (1)
-
company_idMany2one → res.companycomodel_name='res.company'default=<expr>domain=[('is_consolidation', '=', True)]readonly=Truerequired=Truestring='Company'
-
check_account_mapping(self)Check subsidiaries mapping against hodling's. -
check_companies_allowed(self)Check that the user has access to subsidiaries defined in profiles. -
check_interco_partner(self)Check that subsidiaries' partners defined in profiles are not linked to a company. -
check_subsidiary_mapping(self, conso_holding_accounts, subsidiary)Check the mapping between accounts of subsidiary and the accounts of holding. All the active accounts of the subsidiary must be linked to an active account in the holding. :param conso_holding_accounts: Recordset of the holding company accounts :param subsidiary: Recordset of the subsidiary company to check :return: Dictionnary of accounts not correctly mapped to an holding company account -
default_get(self, fields)@api.modelRaise an error if user is not connected to consolidation company. -
run_consolidation(self)Consolidate. Proceed with all checks before launch any consolidation step. This is a base method intended to be inherited with the next consolidation steps.
New fields (2)
-
messageHtmlreadonly=True -
stateSelectiondefault='open' args: [('open', 'Open'), ('error', 'Error'), ('ok', 'Checks ok')]
-
check_account_mapping(self)Convert errors message to a HTML list of errors. -
check_companies_allowed(self)Convert errors message to a HTML list of errors. -
check_configuration(self)Action launched with the button on the view. Calls the checks and display the result as HTML -
check_interco_partner(self)Convert errors message to a HTML list of errors.
New fields (5)
-
consolidation_profile_idsMany2many → company.consolidation.profilecolumn1='consolidate_id'column2='profile_id'comodel_name='company.consolidation.profile'default=<expr>readonly=Truerelation='consolidate_profile_rel' -
journal_idMany2one → account.journalcomodel_name='account.journal'default=<expr>required=Truestring='Journal' -
monthSelectiondefault=<expr>required=True args: MONTHS -
target_moveSelectiondefault='posted'required=Truestring='Target Moves' args: [('posted', 'All Posted Entries'), ('all', 'All Entries')] -
yearChardefault=<expr>required=Truesize=4
-
consolidate_subsidiary(self, profile)Consolidate one subsidiary on the Holding according to its profile. Create a move per subsidiary and a move line per account. If intercompany partners were used, extra move lines will be generated per partner and account. :param profile: Recordset of the consolidation profile of the subsidiary to consolidate on the holding :return: Recordset of the created move -
get_account_balance(self, account, partner=False)Gets the accounting balance for the specified account according to Wizard settings. Flags every processed move line with consolidated=True, so these move lines will not be processed two times in the same consolidation. :param account: Recordset of the account :param partner: Recordset of partner to distinct :return: Balance of the account -
reverse_moves(self, subsidiary)Reverse all consolidation account moves of a subsidiary which have the "Auto posted" flag, and wasn't reversed before this date :param subsidiary: Recordset of the subsidiary :return: tuple with : Recordset of the reversed moves, Recordset of the reversal moves -
run_consolidation(self)Consolidate. Consolidate selected subsidiaries according to consolidation profiles onto the Holding accounts. :return: dict to open an Items view filtered on the created move lines
New fields (1)
-
consol_company_idMany2one → res.companycomodel_name='res.company'readonly=Truestring='Consolidated from Company'
-
post(self)Bypass move posting when reversing consolidation moves
New fields (3)
-
consol_company_idMany2one → res.companycomodel_name='res.company'readonly=Truerelated='move_id.consol_company_id'store=Truestring='Consolidated from' -
consol_partner_idMany2one → res.partnercomodel_name='res.partner'readonly=Truestring='Intercompany Partner' -
consolidatedBooleandefault=False
No public methods.
New fields (3)
-
company_idMany2one → res.companycomodel_name='res.company'default=<expr>required=True -
consolidation_percentageFloatdefault=<expr>help='Define a percentage to consolidate this company (in percents)'required=Truestring='Consolidation percentage' -
sub_company_idMany2one → res.companycomodel_name='res.company'required=Truestring='Subsidiary'
-
name_get(self)
New fields (5)
-
consolidation_default_journal_idMany2one → account.journalcomodel_name='account.journal'help='Default journal to generate consolidation entries'string='Default consolidation journal' -
consolidation_diff_account_idMany2one → account.accountcomodel_name='account.account'help='Conso. differences will be affected to this account'string='Consolidation difference account' -
consolidation_percentageFloatcompute=<expr> -
consolidation_profile_idsOne2many → company.consolidation.profilecomodel_name='company.consolidation.profile'inverse_name='company_id' -
is_consolidationBooleanstring='Consolidation company'
No public methods.
New fields (4)
-
consolidation_default_journal_idMany2one → account.journalcomodel_name='account.journal'help='Default journal to generate consolidation entries'readonly=Falserelated='company_id.consolidation_default_journal_id'string='Default consolidation journal' -
consolidation_diff_account_idMany2one → account.accountcomodel_name='account.account'help='Conso. differences will be affected to this account'readonly=Falserelated='company_id.consolidation_diff_account_id'string='Consolidation difference account' -
consolidation_profile_idsOne2many → company.consolidation.profilecomodel_name='company.consolidation.profile'readonly=Falserelated='company_id.consolidation_profile_ids'string='Consolidation profiles' -
is_consolidationBooleanhelp='Check this box if you want to consolidate in this company.'readonly=Falserelated='company_id.is_consolidation'string='Consolidation company'
No public methods.