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

Module: Third Party and Deferred/Electronic Checks Management

Entity: account.payment

Compute Method: _compute_l10n_latam_checks_amount

Inputs Method Outputs
for payment in self:
            if payment._is_latam_check_payment(check_subtype='new_check'):
                payment.l10n_latam_checks_amount = sum(payment.l10n_latam_new_check_ids.mapped('amount'))
            elif payment._is_latam_check_payment(check_subtype='move_check'):
                payment.l10n_latam_checks_amount = sum(payment.l10n_latam_move_check_ids.mapped('amount'))
            else:
                payment.l10n_latam_checks_amount = 0.0

Back to entity