OdooWiki OCA HUB

Rma Batch Sale Auto Detect

rma_batch_sale_auto_detect folder_open OCA/rma open_in_new
Uncategorised License: AGPL-3

This module extends the batch RMA process by adding automatic sale order linking at batch level. It reuses the matching logic provided by the module rma_sale_auto_detect, but allows it to be executed on all RMAs contained inside an rma.batch.

A new batch state Manual Treatment is introduced. If at least one RMA in the batch fails to auto-match, the batch is moved to this state, so the user can review and fix the unmatched RMAs manually.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds a button on RMA batches that automatically links each RMA to its sale order, and moves the batch to a new 'Manual Treatment' state when some RMAs cannot be matched automatically.

This module works on RMA batches (groups of return requests). It adds a new batch status called 'Manual Treatment', used when at least one return in the batch could not be linked to a sale order automatically.

On the batch form, a 'Mark as Ready' button is shown while the batch is in Manual Treatment. Pressing it clears previous matching problems, tries to link every return in the batch to its sale order, and if any return still has a matching problem the batch stays in Manual Treatment so the user can fix it by hand.

In the list of returns inside the batch, rows are colour-coded: red when a return has a sale-matching problem, blue when it is already linked to a sale order, and orange when the return is excluded from automatic detection or is outside its return eligibility period. Two extra columns are shown: the number of eligibility days and the linked sale order, which can only be edited while the batch is in Draft or Manual Treatment. A checkbox lets the user ignore the automatic sale link for a specific return, and a flag shows when a return is outside its eligibility period.

The module also changes how the sale order field behaves on returns inside a batch, so that changing it does not trigger the usual automatic recalculation.

Models and fields (1)
  • rma.batch · extends an existing modelstate

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.