Repository
OCA/manufacture · module folder · Try on Runboat
Module version
1.0.0
Category
Manufacturing
Folder size
0.53 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/manufacture
Last tracking update
2026-08-07 08:42:53
Authors
Odoo Community Association (OCA), AvanzOSC, Serv. Tecnol. Avanzados - Pedro M. Baeza, OdooMRP team
Maintainers
Odoo Community Association (OCA), AvanzOSC, Serv. Tecnol. Avanzados - Pedro M. Baeza, OdooMRP team
Committers
Weblate, OCA-git-bot, oca-ci, Bhavesh Heliconia
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
# MRP - BoM Version

This module provides a state in the BoM whether to allow their use in
manufacturing.

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
mrp_bom_version_form_view mrp.bom form Inherits mrp.mrp_bom_form_view
mrp_bom_version_search_view mrp.bom search Inherits mrp.view_mrp_bom_filter
mrp_bom_version_tree_view mrp.bom list Inherits mrp.mrp_bom_tree_view
mrp_config_settings_versioning res.config.settings form Inherits mrp.res_config_settings_view_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (20)
  • active Boolean
    default=_default_active readonly=True
  • bom_line_ids One2many
  • byproduct_ids One2many
  • code Char
  • company_id Many2one
  • consumption Selection
  • historical_date Date
    copy=False readonly=True
  • old_versions Many2many → mrp.bom
    comodel_name='mrp.bom' compute='_compute_old_versions'
  • operation_ids One2many
  • picking_type_id Many2one
  • previous_bom_id Many2one → mrp.bom
    comodel_name='mrp.bom' copy=False string='Previous BoM'
  • product_id Many2one
  • product_qty Float
  • product_tmpl_id Many2one
  • product_uom_id Many2one
  • ready_to_produce Selection
  • sequence Integer
  • state Selection
    copy=False default=_default_state index=True readonly=True selection=[('draft', 'Draft'), ('active', 'Active'), ('historical', 'Historical')] string='Status'
  • type Selection
  • version Integer
    copy=False default=1
Public methods (6)
  • button_activate(self)
  • button_draft(self)
  • button_historical(self)
  • button_new_version(self)
  • get_view(self, view_id=None, view_type='form', **options)
    @api.model
  • search(self, args, offset=0, limit=None, order=None)
    @api.model
    Add search argument for field type if the context says so. This should be in old API because context argument is not the last one.

New fields (2)
  • active_draft Boolean
    config_parameter='mrp_bom_version.active_draft' help='This will allow you to define if those BoM passed back to draft are still activated or not' string='Keep re-editing BoM active'
  • group_mrp_bom_version Boolean
    help='The active state may be passed back to state draft' implied_group='mrp_bom_version.group_mrp_bom_version' string='Allow to re-edit BoMs'
Public methods (0)

No public methods.

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
244 days ago
Last activity
4 days ago
Repository
OCA/manufacture
Pull request
[17.0][MIG] mrp_bom_version: Migration to 17.0 (#1681)