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/ (+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:

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
1=== modified file 'mrp_byproduct/'
2--- mrp_byproduct/ 2013-05-06 11:49:04 +0000
3+++ mrp_byproduct/ 2014-03-27 14:33:44 +0000
4@@ -35,7 +35,7 @@
5 '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.\
6 By opposition, 'Variable' means that the quantity will be computed as\
7 '(quantity of byproduct set on the BoM / quantity of manufactured product set on the BoM * quantity of manufactured product in the production order.)'"),
8- 'bom_id': fields.many2one('', 'BoM'),
9+ 'bom_id': fields.many2one('', 'BoM', ondelete='cascade'),
10 }
11 _defaults={
12 'subproduct_type': 'variable',