Skip to content
Health
70/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by15/25
    1 module depends on it
  • Maturity5/25
    In 1 Odoo series since 18.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.07 MB
Module directory on disk
Code analysis 0 migration notes 3 models 2 views 0 HTTP endpoints

Description

This addon automatically links RMA records to the most relevant sale order lines based on delivered quantities and an eligibility period defined on the RMA operation.

The module will:

  • Search sale order lines delivered to the same partner
  • Filter them by the operation's allowed return period
  • Consume delivered quantities in chronological order
  • Link the RMA to the corresponding stock move(s)
  • Split the RMA if multiple deliveries or partial matches are needed
  • Flag the RMA if no matching sale delivery was found

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
rma_batch_sale_auto_detect

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 2

XML IDNameModelTypeStatus
rma_form_view rma form Inherits rma.rma_view_form
rma_operation_form_view rma.operation form Inherits rma.rma_operation_form_view

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 3

New fields (5)
  • has_sale_auto_detect_issue Boolean
    readonly=True
  • ignore_sale_auto_detect Boolean
    readonly=True
  • return_eligibility_days Integer
    compute='_compute_return_eligibility_days' help='Defines the time window in which sales can be linked automatically to RMA lines. Example: 30 days (change of mind), 730 days (warranty), 0 to disable, or a large number for lifetime warranty.' readonly=False store=True string='Return eligibility duration (days)'
  • return_eligibility_period_exceeded Boolean
    compute='_compute_return_eligibility_period_exceeded'
  • sale_auto_detect_note Text
    readonly=True
Public methods (3)
  • action_confirm(self)
  • action_draft(self)
  • action_link_rma_to_sale_line(self)
    automatically link RMAs to the most relevant sale order lines

New fields (2)
  • return_eligibility_days Integer
    default=30 help='Defines the time window in which sales can be linked automatically to RMA lines. Example: 30 days (change of mind), 730 days (warranty), 0 to disable, or a large number for lifetime warranty.' string='Return eligibility duration (days)'
  • return_eligibility_order Selection
    default='older_first' help='This will change the way of eligible sale orders are retrieved.' required=True selection=[('older_first', 'Older First'), ('recent_first', 'Recent First')]
Public methods (0)

No public methods.

New fields (1)
  • rma_returnable_uom_qty Float
    compute='_compute_rma_returnable_uom_qty' digits='Product Unit of Measure' help='Quantity of this delivery move still eligible to be returned through RMA' string='RMA Returnable Quantity'
Public methods (0)

No public methods.