Repository
OCA/product-configurator · module folder · Try on Runboat
Module version
1.0.0
Category
Manufacturing
Folder size
0.11 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/product-configurator
Last tracking update
2026-08-07 08:42:52
Authors
Odoo Community Association (OCA), Pledra
Maintainers
Odoo Community Association (OCA), Pledra
Committers
Weblate, Ruchir Shukla, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
mako
System dependencies
None
Required by
None
Description
Product Configurator wizard available on Manufacturing Orders.

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
mrp_bom_form_view product.config.mrp.bom.form.view mrp.bom form Inherits mrp.mrp_bom_form_view
mrp_bom_line_config_set_form_view mrp.bom.line.configuration.set.form.view mrp.bom.line.configuration.set form New
mrp_bom_line_config_set_tree_view mrp.bom.line.configuration.set.tree.view mrp.bom.line.configuration.set list New
mrp_production_form_view_config product.config.mrp.form.view mrp.production form Inherits mrp.mrp_production_form_view
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (7)

New fields (1)
  • config_ok Boolean
    readonly=True related='product_tmpl_id.config_ok' store=True string='Configurable'
Public methods (0)

No public methods.

New fields (1)
  • config_set_id Many2one → mrp.bom.line.configuration.set
    comodel_name='mrp.bom.line.configuration.set' string='Configuration Set'
Public methods (0)

No public methods.

New fields (2)
  • config_set_id Many2one → mrp.bom.line.configuration.set
    comodel_name='mrp.bom.line.configuration.set' ondelete='cascade' required=True
  • value_ids Many2many → product.attribute.value
    comodel_name='product.attribute.value' required=True string='Attribute Values'
Public methods (0)

No public methods.

New fields (3)
  • bom_line_ids One2many → mrp.bom.line
    comodel_name='mrp.bom.line' inverse_name='config_set_id' readonly=True string='BoM Lines'
  • configuration_ids One2many → mrp.bom.line.configuration
    comodel_name='mrp.bom.line.configuration' inverse_name='config_set_id' string='Configurations'
  • name Char
    required=True string='Configuration'
Public methods (0)

No public methods.

New fields (3)
  • config_ok Boolean
    readonly=True related='product_id.config_ok' store=True string='Configurable'
  • config_session_id Many2one → product.config.session
    comodel_name='product.config.session' string='Config Session'
  • custom_value_ids One2many → product.config.session.custom.value
    comodel_name='product.config.session.custom.value' inverse_name='cfg_session_id' related='config_session_id.custom_value_ids' string='Custom Values'
Public methods (2)
  • action_config_start(self)
    @api.model
    Return action to start configuration wizard
  • reconfigure_product(self)
    Creates and launches a product configurator wizard with a linked template and variant in order to re-configure a existing product. It is esetially a shortcut to pre-fill configuration data of a variant

New fields (0)

No new fields.

Public methods (3)
  • create_get_bom(self, variant, product_tmpl_id=None, values=None)
  • create_get_variant(self, value_ids=None, custom_vals=None)
  • sanitized_spec(self, specs)
    New method to sanitize the specifications by removing invalid entries fix the onchange issue. In 'get_onchange_specifications()', all the fields of the model view are retrieved, and their values are returned as "field_name.value", causing issues in the BOM onchange values.

New fields (1)
  • order_id Many2one → mrp.production
    comodel_name='mrp.production' string='Manufacturing Order'
Public methods (2)
  • action_config_done(self)
    Parse values and execute final code before closing the wizard
  • get_mrp_production_action(self)

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
188 days ago
Last activity
185 days ago
Repository
OCA/product-configurator
Pull request
[19.0][MIG] product_configurator_mrp: Migration to 19.0. (#177)