BOM Dismantling
mrp_bom_dismantling · OCA/manufacture
Health
42/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 101 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.26 MB
Module directory on disk
Code analysis
16 migration notes
8 models
6 views
0 HTTP endpoints
Migration considerations
DismantlingProductChoice— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceMrpBom— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceMrpBom— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (3 methods) migration-api-multi-one · sourceMrpConfigSettings— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (2 methods) migration-api-multi-one · sourceMrpProductProduce— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceProductTemplate— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceStockMove— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourcemrp_bom_form_view— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_mrp_product_produce_wizard— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
mrp_bom_form_view |
mrp_bom_form | mrp.bom | form | Inherits mrp.mrp_bom_form_view |
mrp_bom_tree_view |
mrp_bom_tree | mrp.bom | tree | Inherits mrp.mrp_bom_tree_view |
view_mrp_bom_dismantling_product_choice_wizard |
BOM Dismantling product choice | mrp.bom.dismantling_product_choice | form | New |
view_mrp_bom_filter |
mrp.bom.select | mrp.bom | Inherits mrp.view_mrp_bom_filter | |
view_mrp_config |
mrp.config.settings | Inherits mrp.view_mrp_config | ||
view_mrp_product_produce_wizard |
MRP Product Produce | mrp.product.produce | Inherits mrp.view_mrp_product_produce_wizard |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 8
New fields (2)
-
dismantled_product_idMany2one → product.productcomodel_name='product.product'string='Dismantled product' -
dismantlingBooleandefault=Falsestring='Dismantling'
-
action_create_dismantling_bom(self)@api.multiCheck dismantling_product_choice config and open choice wizard if needed or directly call create_dismantling_bom. -
create_dismantling_bom(self, main_component=None)@api.multiCreate a dismantling BoM based on this BoM If *main_component* is not None, this component will be set as main product in dismantling bom. Else first component will be taken (sorted by Id). :type main_component: product_product :rtype: dict -
create_mrp_production(self)@api.multiCreate a manufacturing order from this BoM
New fields (2)
-
bom_idMany2one → mrp.bomdefault=_get_bom_id args: 'mrp.bom' -
component_idMany2one → product.productdomain=[('id', '=', False)]required=True args: 'product.product'
-
create_bom(self)@api.multiCall dismantling bom creation method with main component specified. -
on_change_bom_id(self)@api.onchange('bom_id')Update component_id domain to include only BOM components.
New fields (1)
-
dismantling_product_choiceSelectionargs: [(0, 'Main BOM product will be set randomly'), (1, 'User have to choose which component to set as main BOM product')], 'Dismantling BOM'
-
get_default_dismantling_product_choice(self, fields)@api.multi -
set_dismantling_product_choice(self)@api.multi
New fields (1)
-
move_lot_idsOne2many → mrp.product.produced.lineinverse_name='produce_id'string='Products to produce lots' args: 'mrp.product.produced.line'
-
do_produce(self)@api.multiStock produced products lot_id and call parent do_produce -
on_change_product_id(self)@api.onchange('product_id')Listen to product_id changes just for filling byproducts_lot_ids.
New fields (5)
-
lot_idMany2one → stock.production.lotstring='Lot' args: 'stock.production.lot' -
lot_requiredBooleancompute='_compute_lot_required' -
move_idMany2one → stock.moverequired=True args: 'stock.move' -
produce_idMany2one → mrp.product.producerequired=Truestring='Produce' args: 'mrp.product.produce' -
product_idMany2one → product.productrelated='move_id.product_id' args: 'product.product'
No public methods.
New fields (0)
No new fields.
Public methods (1)-
action_view_bom(self, cr, uid, ids, context=None)Override parent method to add a domain which filter out dismantling BoM
New fields (1)
-
bom_countIntegercompute='_bom_count'string='# Bill of Material'
No public methods.
New fields (0)
No new fields.
Public methods (1)-
action_consume(self, product_qty, location_id=False, restrict_lot_id=False, restrict_partner_id=False, consumed_for=False)@api.multiOverride restrict_lot_id if user define one for this move's product in wizard.
Loading…