mrp_packaging_qty/README.md

33 lines
1.8 KiB
Markdown

# MRP Packaging Quantity
This module extends the Odoo Manufacturing app to allow creating Manufacturing Orders based on product packaging.
## Features
- **Packaging Selection**: Adds a `Packaging` field to the Manufacturing Order form.
- **Quantity Packaging**: Adds a `Quantity Packaging` field to specify the number of packages to produce.
- **Auto-Calculation**: Automatically calculates the total `Quantity` (to produce) based on the selected packaging and the number of packages (Quantity = Packaging Size * Quantity Packaging).
- **Manual Override**: Allows users to manually adjust the Quantity if needed, or create MOs without using packaging.
- **Traceability Logic**: Automatically consolidates split stock move lines into a single line per Lot/Location when producing more than planned, preventing duplicate entries in Traceability Reports.
- **Packaging Reset**: Automatically resets `Quantity Packaging` to 0.0 when the Packaging field is cleared, allowing seamless transition back to standard UOM input.
- **Clean Reports**: Uses advanced logic (SQL Delete) to remove duplicate 'Done' lines that cannot be unlinked via ORM, ensuring Traceability Reports are accurate and free of zero-quantity lines.
## Usage
1. Go to **Manufacturing** > **Operations** > **Manufacturing Orders**.
2. Click **New** to create a manufacturing order.
3. Select a **Product**.
4. (Optional) Select a **Packaging** type (e.g., Box of 10).
5. Enter the **Quantity Packaging** (e.g., 5).
6. The main **Quantity** field will automatically update (e.g., 50).
7. Proceed with the manufacturing order as usual.
## Installation
1. Install this module in your Odoo instance.
2. Ensure the user has the "Manage Product Packaging" permission (or the setting is enabled in Inventory/Sales).
## Authors
- Suherdy Yacob