Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Sales
Entity: sale.order
Compute Method: _compute_preferred_payment_method_line_id
| Inputs | Method | Outputs |
|---|---|---|
|
for order in self:
order = order.with_company(order.company_id)
- order.preferred_payment_method_line_id = order.partner_id.property_inbound_payment_method_line_id
+ order.preferred_payment_method_line_id = (
+ order.partner_id.property_inbound_payment_method_line_id
+ )
|
|
