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: l10n_latam.check
Compute Method: _compute_issue_state
| Inputs | Method | Outputs |
|---|---|---|
|
for rec in self: - if not rec.outstanding_line_id: + if rec.payment_method_code != 'own_checks' or not rec.outstanding_line_id: rec.issue_state = False elif rec.amount and not rec.outstanding_line_id.amount_residual: if any( line.account_id.account_type in ['liability_payable', 'asset_receivable'] for line in rec.outstanding_line_id.matched_debit_ids.debit_move_id.move_id.line_ids ): rec.issue_state = 'voided' else: rec.issue_state = 'debited' else: rec.issue_state = 'handed' |
|
