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

Module: Check Printing Base

Entity: account.move

Compute Method: _compute_preferred_payment_method_idd

View 17.0
Inputs Method Outputs
  • partner_id
  • company_id
- for move in self:
-             partner = move.partner_id
-             # take the payment method corresponding to the move's company
-             move.preferred_payment_method_id = partner.with_company(move.company_id).property_payment_method_id
  • preferred_payment_method_id

Back to entity