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

Module: Invoicing

Entity: account.reconcile.model

Compute Method: _compute_partner_mapping

View 20.0
Inputs Method Outputs
  • match_label
  • line_ids
+ for model in self:
+             is_partner_mapping = model.match_label and len(model.line_ids) == 1 and model.line_ids[0].partner_id and not model.line_ids[0].account_id
+             model.mapped_partner_id = is_partner_mapping and model.line_ids[0].partner_id.id
  • mapped_partner_id

Back to entity