Merge lp:~wiz-keed/openobject-addons/7.0-fix-mrp-subproduct-unlink into lp:openobject-addons/7.0

Proposed by Paul Catinean
Status: Needs review
Proposed branch: lp:~wiz-keed/openobject-addons/7.0-fix-mrp-subproduct-unlink
Merge into: lp:openobject-addons/7.0
Diff against target: 12 lines (+1/-1)
1 file modified
mrp_byproduct/mrp_byproduct.py (+1/-1)
To merge this branch: bzr merge lp:~wiz-keed/openobject-addons/7.0-fix-mrp-subproduct-unlink
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+213078@code.launchpad.net

Description of the change

[FIX] Added ondelete='cascade' to remove mrp.subproduct when attatched bom is unlinked

To post a comment you must log in.

Unmerged revisions

9935. By Paul Catinean

[FIX] Added ondelete='cascade' to mrp.subproduct when attatched bom is unlinked

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'mrp_byproduct/mrp_byproduct.py'
--- mrp_byproduct/mrp_byproduct.py 2013-05-06 11:49:04 +0000
+++ mrp_byproduct/mrp_byproduct.py 2014-03-27 14:33:44 +0000
@@ -35,7 +35,7 @@
35 '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.\35 '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.\
36 By opposition, 'Variable' means that the quantity will be computed as\36 By opposition, 'Variable' means that the quantity will be computed as\
37 '(quantity of byproduct set on the BoM / quantity of manufactured product set on the BoM * quantity of manufactured product in the production order.)'"),37 '(quantity of byproduct set on the BoM / quantity of manufactured product set on the BoM * quantity of manufactured product in the production order.)'"),
38 'bom_id': fields.many2one('mrp.bom', 'BoM'),38 'bom_id': fields.many2one('mrp.bom', 'BoM', ondelete='cascade'),
39 }39 }
40 _defaults={40 _defaults={
41 'subproduct_type': 'variable',41 'subproduct_type': 'variable',