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

Module: In-App Purchases

Entity: iap.account

Compute Method: _compute_balance

Inputs Method Outputs
for account in self:
            account.balance = f'{account.account_info_id.balance} {account.account_info_id.unit_name}' if account.account_info_id else "0 Credits"

Back to entity