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

Module: Return Merchandise Authorization Management - Link with Sales

Entity: rma

Compute Method: _compute_can_be_refunded_with_invoice

View 18.0
Inputs Method Outputs
  • can_be_refunded
  • sale_line_id
  • sale_line_id.invoice_lines
  • move_id
  • move_id.rma_id
  • move_id.rma_id.sale_line_id
  • move_id.rma_id.sale_line_id.invoice_lines
- for rec in self:
-             rec.can_be_refunded_with_invoice = bool(
-                 rec.can_be_refunded
-                 and (
-                     rec.sale_line_id.invoice_lines
-                     or rec.move_id.rma_id.sale_line_id.invoice_lines
-                 )
-             )
  • can_be_refunded_with_invoice

Back to entity