TIP: You can type at any time to perform a new search.
Account Consolidation
account_consolidation_oca · OCA/account-consolidation
- Repository
- OCA/account-consolidation · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Generic Modules/Accounting
- Folder size
- 0.29 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/account-consolidation
- Last tracking update
- 2026-08-07 07:47:48
- Authors
- Camptocamp, Odoo Community Association (OCA)
- Maintainers
- Camptocamp, Odoo Community Association (OCA)
- Committers
- Enric Tobella, Weblate, oca-ci, kaynnan
Code Analysis ⓘ
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.
- Status
- Open migration PR — not merged yet for this version
- CI status
- no CI data
- Open since
- 941 days ago
- Last activity
- 918 days ago
- Repository
- OCA/account-consolidation
- Pull request
- [15.0][MIG] account_consolidation_oca (#43)