Subcontract Productions
mrp_subcontracting · OCA/manufacture
OCA/manufacture 12.0 → odoo/odoo 13.0–20.0
Health
45/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 49 months ago
-
Required by15/251 module depends on it
-
Maturity5/25In 1 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.49 MB
Module directory on disk
Code analysis
5 migration notes
14 models
7 views
0 HTTP endpoints
Migration considerations
StockMove— 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 · sourcemrp_subcontracting_move_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. (2 occurrences in this file) migration-view-attrs-states · sourcemrp_subcontracting_move_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourcestock_picking_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 · 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
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- mrp_subcontracting_purchase_link
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 7
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
mrp_bom_form_view |
mrp.bom.form.view | mrp.bom | form | Inherits mrp.mrp_bom_form_view |
mrp_subcontracting_move_form_view |
mrp.subcontracting.move.form.view | stock.move | form | New |
mrp_subcontracting_move_tree_view |
mrp.subcontracting.move.tree.view | stock.move | tree | New |
product_supplierinfo_subcontractor_tree_view |
product.supplierinfo.subcontractor.tree.view | product.supplierinfo | tree | Inherits product.product_supplierinfo_tree_view |
stock_picking_form_view |
stock.picking.form.view | stock.picking | form | Inherits stock.view_picking_form |
view_partner_mrp_subcontracting_form |
res.partner.mrp_subcontracting.property.form.inherit | res.partner | form | Inherits stock.view_partner_stock_form |
view_warehouse_inherit_mrp_subcontracting |
Stock Warehouse Inherit Subcontracting | stock.warehouse | Inherits mrp.view_warehouse_inherit_mrp |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 14
New fields (2)
-
subcontractor_idsMany2many → res.partnerstring='Subcontractors' args: 'res.partner', 'mrp_bom_subcontractor' -
typeSelectionselection_add=[('subcontract', 'Subcontracting')]
No public methods.
New fields (1)
-
subcontract_move_idMany2one → stock.moveargs: 'stock.move', 'stock move from the subcontract picking'
-
do_produce(self)After producing, set the move line on the subcontract picking.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
is_subcontractorBooleancompute='_compute_is_subcontractor'help='Choose a vendor of type subcontractor if you want to subcontract the product' args: 'Subcontracted'
No public methods.
New fields (1)
-
subcontracting_location_idMany2one → stock.locationargs: 'stock.location'
-
create_missing_subcontracting_location(self)@api.model -
create_transit_location(self)As there's no standard method for creating locations and we must create the subcontracting location before the warehouse creation, we inherit this method for performing the subcontracting location creation as well.
New fields (1)
-
property_stock_subcontractorMany2one → stock.locationcompany_dependent=Truehelp='The stock location used as source and destination when sending goods to this contact during a subcontracting process.'string='Subcontractor Location' args: 'stock.location'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (1)-
should_bypass_reservation(self)
New fields (2)
-
is_subcontractBooleanargs: 'The move is a subcontract receipt' -
show_subcontracting_details_visibleBooleancompute='_compute_show_subcontracting_details_visible'
-
action_show_details(self)Open the produce wizard in order to register tracked components for subcontracted product. Otherwise use standard behavior. -
action_show_subcontract_details(self)Display moves raw for subcontracted product self. -
copy(self, default=None)@api.multi -
write(self, values)If the initial demand is updated then also update the linked subcontract order to the new quantity.
New fields (0)
No new fields.
Public methods (3)-
create(self, vals_list)@api.model_create_multi -
unlink(self) -
write(self, values)
New fields (1)
-
display_action_record_componentsBooleancompute='_compute_display_action_record_components'
-
action_done(self) -
action_record_components(self)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (5)
-
subcontracting_mto_pull_idMany2one → stock.ruleargs: 'stock.rule', 'Subcontracting MTO Rule' -
subcontracting_pull_idMany2one → stock.ruleargs: 'stock.rule', 'Subcontracting MTS Rule' -
subcontracting_route_idMany2one → stock.location.routeondelete='restrict' args: 'stock.location.route', 'Resupply Subcontractor' -
subcontracting_to_resupplyBooleandefault=Truehelp='Resupply subcontractors with components' args: 'Resupply Subcontractors' -
subcontracting_type_idMany2one → stock.picking.typedomain=[('code', '=', 'mrp_operation')] args: 'stock.picking.type', 'Subcontracting Operation Type'
-
get_rules_dict(self)