| models | ||
| wizard | ||
| __init__.py | ||
| __manifest__.py | ||
| .gitignore | ||
| README.md | ||
Subcontract Generate Lot
Overview
This Odoo 19 module provides automated lot/serial number generation specifically for subcontracting receipts. It isolates the subcontracting automation feature from legacy modules, ensuring compatibility with Odoo 19's native "Lot Sequence per Product" functionality.
Features
- Auto-Generate Lots: Automatically generates lot/serial numbers for subcontract receipt moves based on the product's configured sequence.
- Wizard Support: Includes a "Generate Subcontract Lots" wizard for manual control and batch generation.
- Validation Hook: Automatically triggers lot generation when validating a subcontracting receipt (Stock Picking).
- Native Compatibility: Uses Odoo 19's standard
lot_sequence_idon the product template, ensuring no conflict with standard features.
Prerequisites
- Odoo Version: 19.0
- Dependencies:
stockmrpmrp_subcontracting
Installation
- Place the module in your custom addons path.
- Update the App List in Odoo.
- Install Subcontract Generate Lot.
- Important: If you are migrating from
product_lot_sequence_per_product, you MUST uninstall that module after installing this one to prevent conflicts.
Usage
- Configure Product:
- Go to a Product form -> Inventory tab.
- Set Tracking to 'By Lots' or 'By Unique Serial Number'.
- Configure the Lot/Serial Numbers Sequence (Standard Odoo field).
- Subcontract Receipt:
- Create a Purchase Order for a subcontracted product.
- Confirm the PO to create a Receipt (Stock Picking).
- On the Receipt, use the Auto Generate Lots button or validate the transfer to trigger generation.