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

Module: Rma Batch

Entity: rma

Compute Method: _compute_partner_id

View 18.0
Inputs Method Outputs
  • state
  • batch_id
  • batch_id.partner_id
+ for rec in self:
+             if rec.state != "draft":
+                 continue
+             if rec.batch_id.partner_id:
+                 rec.partner_id = rec.batch_id.partner_id
  • partner_id

Back to entity