OdooWiki OCA HUB

Rma Lot Autocreate

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

This module extends the RMA workflow by allowing automatic creation of stock lots when confirming an RMA.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Automatically creates a stock lot or serial number when an RMA is confirmed, using a sequence configured per RMA operation, and can set expiration and removal dates on the new lot.

This module adds automatic lot/serial creation to the RMA (Return Merchandise Authorization) workflow. On each RMA operation, you can enable "Auto-create Lot/Serial on Confirm" and choose a numbering sequence. When an RMA using that operation is confirmed, if the product is tracked (lot or serial) and no lot is already set on the RMA, a new lot is created automatically and linked to the RMA.

  • The new lot name comes from the selected sequence; a default sequence "RMA Lot Number" (code rma.lot) is provided.
  • If the product uses expiration dates and an expiration duration is configured on the operation, the lot's expiration date is set to the confirmation date plus that many days.
  • A removal date can also be set as the expiration date minus a configured number of days.

The configuration fields appear on the RMA operation form, in the settings group. Validation rules prevent saving an operation with auto-creation enabled but no sequence, negative day values, or a removal offset without a positive expiration duration.

The module touches the rma and rma.operation models and the stock.lot model, and depends on rma_lot and product_expiry.

Depends on

rma_lotproduct_expiry
Models and fields (2)
  • rma · extends an existing model
  • rma.operation · extends an existing modelauto_create_lot (Auto-create Lot/Serial on Confirm), lot_sequence_id (Lot/Serial Name Sequence), lot_expiration_days (Lot Expiration (days)), lot_removal_days_before_expiration (Removal Days Before Expiration)

Text generated by AI (DeepSeek) from reading the Odoo 16.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

OCA documentation · Odoo 16.0
  • Go to RMA / Configuration / Operations
  • Open or create an RMA operation and:
  • Enable Auto-create Lot/Serial on Confirm
  • Select the Lot/Serial Name Sequence to use for generated lots

Optionally set Removal Days Before Expiration to automatically compute the lot’s Removal Date as Expiration minus N days. Requires a positive Lot Expiration (days).

  • Create an RMA for a tracked product (lot or serial) without specifying an existing lot
  • Assign an RMA Operation that has:
  • Auto-create Lot/Serial enabled
  • A Lot Sequence defined
  • Confirm the RMA
  • The system will generate a new stock lot using the defined sequence
  • The lot will be linked to the RMA

If configured, the lot will receive Expiration and Removal date (removal_date = expiration_date − N days).

No verified information in OCA: Installation.

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.