OdooWiki OCA HUB

Repair Stock Move Restrict Lot

repair_stock_move_restrict_lot folder_open OCA/repair open_in_new
Repair License: AGPL-3

Glue module between repair_stock_move and stock_restrict_lot. It assigns the repair lot to the stock moves on creation. Otherwise in the _action_assign it may reserve the incorrect quant and then and error is raised when unreserving the quant: https://github.com/odoo/odoo/blob/15.0/addons/stock/models/stock_move_line.py#L388

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

This module links repair orders to lot restrictions on their stock moves, so the lot set on a repair order is automatically applied to the related stock move. It helps avoid reserving the wrong lot during repair operations.

This is a small glue module that connects two other modules: one that creates stock moves from repair orders and one that restricts stock moves to a specific lot.

When a repair order has a lot or serial number set, the module automatically copies that lot onto the stock move that the repair order prepares. This means the stock move is restricted to the same lot as the repair order, instead of being free to reserve any available lot.

  • The behaviour is automatic: no new button or menu is added.
  • It applies when the repair order prepares its stock move, so the restriction is in place from the start.
  • It only acts when a lot is actually set on the repair order; if no lot is set, nothing changes.
  • It touches the repair.order model and the stock move preparation logic.

The practical effect is that repair operations reserve the correct lot, which prevents errors that can happen later when the system tries to release a reservation made on the wrong lot. No new screens, reports, or scheduled actions are introduced by this module.

Models and fields (1)
  • repair.order · extends an existing model

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