Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Invoicing

Entity: account.account

Compute Method: _compute_internal_group

View 17.0 View 19.0
Inputs Method Outputs
  • account_type
for account in self:
-             if account.account_type:
-                 account.internal_group = 'off_balance' if account.account_type == 'off_balance' else account.account_type.split('_')[0]
+             account.internal_group = account.account_type and account._get_internal_group(account.account_type)
  • internal_group

Back to entity