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_partner_invoice_id

View 19.0 View 20.0
Inputs Method Outputs
  • partner_id
for order in self:
-             order.partner_invoice_id = order.partner_id.address_get(['invoice'])['invoice'] if order.partner_id else False
+             order.partner_invoice_id = (
+                 order.partner_id.address_get(["invoice"])["invoice"] if order.partner_id else False
+             )
  • partner_invoice_id

Back to entity