Repository
odoo/odoo · module folder
Module version
1.0
Category
Manufacturing
Folder size
0.35 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
None
Last tracking update
2026-08-07 05:07:18
Authors
Maintainers
None
Committers
Fabien Pinckaers, Christophe Simonis, Martin Trigaux, Odoo Translation Bot, Simon Lejeune, Goffin Simon, Nicolas Martinelli, Yannick Tivisse, Arnold Moyaux, XavierDo, Xavier-Do, William Henrotin
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module allows you to produce several products from one production order.
=============================================================================

You can configure by-products in the bill of material.

Without this module:
--------------------
    A + B + C -> D

With this module:
-----------------
    A + B + C -> D + E
    

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
mrp_subproduct_view mrp.bom.sub.product mrp.bom form Inherits mrp.mrp_bom_form_view
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (6)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • sub_products One2many → mrp.subproduct
    copy=True args: 'mrp.subproduct', 'bom_id', 'Byproducts'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • check_finished_move_lots(self)
    @api.multi
    Handle by product tracked

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (5)
  • bom_id Many2one → mrp.bom
    ondelete='cascade' args: 'mrp.bom', 'BoM'
  • operation_id Many2one → mrp.routing.workcenter
    args: 'mrp.routing.workcenter', 'Produced at Operation'
  • product_id Many2one → product.product
    required=True args: 'product.product', 'Product'
  • product_qty Float
    default=1.0 digits=dp.get_precision('Product Unit of Measure') required=True args: 'Product Qty'
  • product_uom_id Many2one → uom.uom
    required=True args: 'uom.uom', 'Unit of Measure'
Public methods (2)
  • onchange_product_id(self)
    @api.onchange('product_id')
    Changes UoM if product_id changes.
  • onchange_uom(self)
    @api.onchange('product_uom_id')

New fields (1)
  • subproduct_id Many2one → mrp.subproduct
    help='Subproduct line that generated the move in a manufacturing order' args: 'mrp.subproduct', 'Subproduct'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…