MRP Split Units
mrp_split_units · OCA/manufacture
-
Security25/25No findings
-
Activity0/25Last human commit 141 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
stock_move— Class 'stock_move' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · 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
MRP Split one line into many lines with quantity one each in a production order.
This module adds a button in each line of the Products to Finish and Finished Products to automatically split one line with integer quantity into many lines, each with quantity 1. After the split, the module performs a "poor man's refresh" (i.e. manually reloads the page) as a workaround for the bug lp:1083253.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
mrp_production_form_lot_attribute_view |
mrp.production.lot.attribute.form | mrp.production | form | Inherits mrp.mrp_production_form_view |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
No new fields.
Public methods (3)-
split_units(self, cr, uid, ids, context=None)Split the current move creating moves with quantity one. Return an action to reload the current record as a poor man's refresh. -
split_units_finished(self, cr, uid, ids, context=None)Split a line in the Finished Products. Return an action. -
split_units_to_finish(self, cr, uid, ids, context=None)Split a line in the Products to Finish. Return an action.