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_include_initial_balance

View 17.0 View 18.0
Inputs Method Outputs
  • account_type
  • internal_group
for account in self:
-             account.include_initial_balance = account.account_type not in ('income', 'income_other', 'expense', 'expense_depreciation', 'expense_direct_cost', 'off_balance')
+             account.include_initial_balance = account.internal_group not in ['income', 'expense']
  • include_initial_balance

Back to entity