Skip to content
Snippets Groups Projects
Commit 585d38c0 authored by Olivier Dony's avatar Olivier Dony
Browse files

Merge pull request #357 from WizKeeD/mrp_subproduct_unlink_fix

[FIX] Added cascade on subproduct so they get removed with parent bom
parents bd51bf1e d8277968
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ class mrp_subproduct(osv.osv):
'Fixed' depicts a situation where the quantity of created byproduct is always equal to the quantity set on the BoM, regardless of how many are created in the production order.\
By opposition, 'Variable' means that the quantity will be computed as\
'(quantity of byproduct set on the BoM / quantity of manufactured product set on the BoM * quantity of manufactured product in the production order.)'"),
'bom_id': fields.many2one('mrp.bom', 'BoM'),
'bom_id': fields.many2one('mrp.bom', 'BoM', ondelete='cascade'),
}
_defaults={
'subproduct_type': 'variable',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment