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 ## Features
- **Packaging Selection**: Adds a `Packaging` field to the Manufacturing Order form. - **Packaging Management**: Added a dedicated menu at **Manufacturing > Configuration > Packaging** to manage all created packaging records.
- **Quantity Packaging**: Adds a `Quantity Packaging` field to specify the number of packages to produce. - **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). - **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. - **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. - **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 ## Usage
1. Go to **Manufacturing** > **Operations** > **Manufacturing Orders**. 1. **Setup Packaging**:
2. Click **New** to create a manufacturing order. - Go to **Manufacturing** > **Configuration** > **Packaging**.
3. Select a **Product**. - Create or delete your product packaging templates here (e.g., Box of 10, Pallet of 50).
4. (Optional) Select a **Packaging** type (e.g., Box of 10). 2. **Create MO**:
5. Enter the **Quantity Packaging** (e.g., 5). - Go to **Manufacturing** > **Operations** > **Manufacturing Orders**.
6. The main **Quantity** field will automatically update (e.g., 50). - Click **New** to create a manufacturing order.
7. Proceed with the manufacturing order as usual. - 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 ## Installation
1. Install this module in your Odoo instance. 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 ## Authors

View File

@ -25,7 +25,7 @@
<field name="name">mrp.packaging.list</field> <field name="name">mrp.packaging.list</field>
<field name="model">mrp.packaging</field> <field name="model">mrp.packaging</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<list string="Packaging" editable="bottom"> <list string="MRP Packaging" editable="bottom">
<field name="name"/> <field name="name"/>
<field name="product_tmpl_id"/> <field name="product_tmpl_id"/>
<field name="qty"/> <field name="qty"/>
@ -33,4 +33,21 @@
</list> </list>
</field> </field>
</record> </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> </odoo>