feat: Add a dedicated menu for managing MRP packaging records and update documentation to reflect the new management and deletion capabilities.

This commit is contained in:
Suherdy Yacob 2026-02-13 09:33:09 +07:00
parent 849a50ec43
commit ebef032f0e
2 changed files with 33 additions and 11 deletions

View File

@ -4,8 +4,8 @@ This module extends the Odoo Manufacturing app to allow creating Manufacturing O
## 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.
- **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.
@ -14,18 +14,23 @@ This module extends the Odoo Manufacturing app to allow creating Manufacturing O
## 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.
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. Ensure the user has the "Manage Product Packaging" permission (or the setting is enabled in Inventory/Sales).
2. The **Packaging** menu will appear under Manufacturing Configuration.
## Authors

View File

@ -25,7 +25,7 @@
<field name="name">mrp.packaging.list</field>
<field name="model">mrp.packaging</field>
<field name="arch" type="xml">
<list string="Packaging" editable="bottom">
<list string="MRP Packaging" editable="bottom">
<field name="name"/>
<field name="product_tmpl_id"/>
<field name="qty"/>
@ -33,4 +33,21 @@
</list>
</field>
</record>
<record id="action_mrp_packaging" model="ir.actions.act_window">
<field name="name">Packaging</field>
<field name="res_model">mrp.packaging</field>
<field name="view_mode">list,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a new packaging
</p>
</field>
</record>
<menuitem id="menu_mrp_packaging"
name="Packaging"
parent="mrp.menu_mrp_configuration"
action="action_mrp_packaging"
sequence="30"/>
</odoo>