Account Move Line Mrp Info
account_move_line_mrp_info · OCA/manufacture
Replaces
account_move_line_manufacture_info (14.0) Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 6 Odoo series since 14.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.06 MB
Module directory on disk
Code analysis
1 migration note
4 models
5 views
0 HTTP endpoints
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE account_move_line aml SET mrp_production_id = q.mrp_id FROM ( SELECT aml.id AS aml_id, MIN(COALESCE(sm.production_id, sm.raw_material_production_id)) AS mrp_id FROM account_move_line aml JOIN stock_move sm ON sm.account_move_id = aml.move_id AND sm.product_id = aml.product_id AND LEFT(aml.name, LENGTH(sm.reference) + 3) = sm.reference || ' - ' WHERE COALESCE(sm.production_id, sm.raw_material_production_id) IS NOT NULL GROUP BY aml.id HAVING COUNT(DISTINCT COALESCE( sm.production_id, sm.raw_material_production_id)) = 1 ) q WHERE q.aml_id = aml.id` - re-check the table/column names still match after upgrading. (3 occurrences in this file) migration-raw-sql-write · 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
This module adds the manufacturing orders and unbuild orders to the account move lines that it generates.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
mrp_production_form_view |
mrp.production | form | Inherits mrp.mrp_production_form_view | |
mrp_unbuild_form_view |
mrp.unbuild | form | Inherits mrp.mrp_unbuild_form_view | |
view_account_move_line_filter |
account.move.line.filter - account_move_line_mrp_info | account.move.line | Inherits account.view_account_move_line_filter | |
view_move_line_form |
account.move.line.form | account.move.line | form | Inherits account.view_move_line_form |
view_move_line_tree |
account.move.line.tree - account_move_line_mrp_info | account.move.line | tree | Inherits account.view_move_line_tree |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (3)
-
mrp_production_idMany2one → mrp.productioncomodel_name='mrp.production'index='btree_not_null'readonly=Truestring='Manufacturing Order' -
mrp_workcenter_productivity_idsOne2many → mrp.workcenter.productivitycomodel_name='mrp.workcenter.productivity'inverse_name='account_move_line_id' -
unbuild_idMany2one → mrp.unbuildcomodel_name='mrp.unbuild'index='btree_not_null'readonly=Truestring='Unbuild Order'
No public methods.
New fields (1)
-
account_move_line_idsOne2many → account.move.linecomodel_name='account.move.line'copy=Falseinverse_name='mrp_production_id'
-
view_journal_items(self)
New fields (1)
-
account_move_line_idsOne2many → account.move.linecomodel_name='account.move.line'copy=Falseinverse_name='unbuild_id'
-
view_journal_items(self)
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…