# MRP Packaging Quantity This module extends the Odoo Manufacturing app to allow creating Manufacturing Orders based on product packaging. ## Features - **Packaging Management**: Added a dedicated menu at **Manufacturing > Configuration > Packaging** to manage all created packaging records. - **Delete Support**: Users can easily delete unwanted packaging records directly from the list view. - **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. **Setup Packaging**: - Go to **Manufacturing** > **Configuration** > **Packaging**. - Create or delete your product packaging templates here (e.g., Box of 10, Pallet of 50). 2. **Create MO**: - Go to **Manufacturing** > **Operations** > **Manufacturing Orders**. - Click **New** to create a manufacturing order. - Select a **Product**. - (Optional) Select a **Packaging** type. - Enter the **Quantity Packaging**. - The main **Quantity** field will automatically update. 3. **Produce**: - Proceed with the manufacturing order as usual. ## Installation 1. Install this module in your Odoo instance. 2. The **Packaging** menu will appear under Manufacturing Configuration. ## Authors - Suherdy Yacob