[FIX] mrp: prevent suppression of bom if used in mo
authorMartin Trigaux <mat@odoo.com>
Mon, 10 Nov 2014 14:36:40 +0000 (15:36 +0100)
committerMartin Trigaux <mat@odoo.com>
Mon, 10 Nov 2014 14:37:53 +0000 (15:37 +0100)
commite27afc13cb5d95831cb9f4a0f1fb98e70129ceed
treea89987638da0fa6c4a2f6f2511f0955756165af7
parentc200ffd74e892492994fa66ac8f38b390bc2b8d9
[FIX] mrp: prevent suppression of bom if used in mo

The field bom_id is required on a manufacturing order and deleting a mrp.bom would block the current mo.
Restrict the suppression for manufacturing order in progress.
Fixes #3417
addons/mrp/mrp.py