Production Orders Hierarchy

mrp_production_hierarchy
REPOSITORY
REPOSITORYOCA/manufacture
GIT
GIThttps://github.com/OCA/manufacture.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/manufacture/tree/12.0/mrp_production_hierarchy
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYManufacturing
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Sergio Corato, ABF OSIELL
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Sergio Corato, ABF OSIELL
COMMITTERS
COMMITTERSHolger Brunn, oca-travis, Weblate, OCA-git-bot, sergiocorato, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/manufacture
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:20
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - mrp
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - stock
    - barcodes
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
mrp_production_form_view mrp.production.form mrp.production div Inherits mrp.mrp_production_form_view
mrp_production_tree_view mrp.production.tree mrp.production field Inherits mrp.mrp_production_tree_view
view_mrp_production_filter mrp.production.search.inherit mrp.production xpath Inherits mrp.view_mrp_production_filter
Models touched (2)

New fields (3)
  • child_ids One2many → mrp.production
    domain=[('state', '!=', 'cancel')] args: 'mrp.production', 'parent_id', 'Child orders'
  • parent_id Many2one → mrp.production
    index=True ondelete='restrict' readonly=True args: 'mrp.production', 'Parent order'
  • root_id Many2one → mrp.production
    index=True ondelete='restrict' readonly=True args: 'mrp.production', 'Root order'
Public methods (1)
  • open_production_tree(self)
    @api.multi

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/manufacture
GIT
GIThttps://github.com/OCA/manufacture.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/manufacture/tree/10.0/mrp_production_hierarchy
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYManufacturing
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ABF OSIELL
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ABF OSIELL
COMMITTERS
COMMITTERSsebalix, OCA Transbot, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/manufacture
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:58
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - mrp
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - web_tour
    - report
    - stock
    - procurement
    - barcodes
    - web_planner
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
mrp_production_form_view mrp.production.form mrp.production div Inherits mrp.mrp_production_form_view
mrp_production_tree_view mrp.production.tree mrp.production field Inherits mrp.mrp_production_tree_view
mrp_production_tree_view_field_parent mrp.production.tree mrp.production tree Inherits mrp.mrp_production_tree_view
view_mrp_production_filter mrp.production.search.inherit mrp.production xpath Inherits mrp.view_mrp_production_filter
Models touched (2)

New fields (3)
  • child_ids One2many → mrp.production
    domain=[('state', '!=', 'cancel')] args: 'mrp.production', 'parent_id', 'Child orders'
  • parent_id Many2one → mrp.production
    index=True ondelete='restrict' readonly=True args: 'mrp.production', 'Parent order'
  • root_id Many2one → mrp.production
    index=True ondelete='restrict' readonly=True args: 'mrp.production', 'Root order'
Public methods (1)
  • open_production_tree(self)
    @api.multi

New fields (0)

No new fields.

Public methods (1)
  • make_mo(self)
    @api.multi
    Overload to set the root and parent production order ID to the children production orders.