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

Module: Account Banking Mandate

Entity: account.move

Compute Method: _compute_mandate_id

Inputs Method Outputs
  • company_id
  • payment_mode_id
  • payment_mode_id.payment_method_id
  • payment_mode_id.payment_method_id.mandate_required
  • partner_id
  • partner_id.valid_mandate_id
for move in self:
            move = move.with_company(move.company_id)
            if move.payment_mode_id.payment_method_id.mandate_required:
                move.mandate_id = move.partner_id.valid_mandate_id
            else:
                move.mandate_id = False

Back to entity