Repository
OCA/rma · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.06 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/rma
Last tracking update
2026-08-07 08:42:51
Authors
ACSONE SA/NV, Odoo Community Association (OCA)
Maintainers
ACSONE SA/NV, Odoo Community Association (OCA)
Committers
sbejaoui, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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

Code Analysis

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 (1)
  • 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)'
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.