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

Module: Account Payment Batch OCA

Entity: account.payment.order

Compute Method: _compute_allowed_journal_ids

Inputs Method Outputs
for record in self:
            allowed_journals = False
            if record.payment_method_line_id:
                allowed_journals = record.payment_method_line_id.journal_id
                if (
                    record.payment_method_line_id.bank_account_link == "variable"
                    and record.payment_method_line_id.variable_journal_ids
                ):
                    allowed_journals |= (
                        record.payment_method_line_id.variable_journal_ids
                    )
            record.allowed_journal_ids = allowed_journals

Back to entity