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.method.line

Compute Method: _compute_default_date_prefered

Inputs Method Outputs
  • payment_method_id
  • payment_method_id.payment_type
  • payment_method_id.payment_order_ok
for line in self:
            if (
                line.payment_method_id.payment_type == "inbound"
                and line.payment_method_id.payment_order_ok
            ):
                line.default_date_prefered = "due"

Back to entity