Merge lp:~toolpart/openobject-addons/mrp_wo_bom into lp:openobject-addons/6.0

Proposed by ViktorNagy
Status: Needs review
Proposed branch: lp:~toolpart/openobject-addons/mrp_wo_bom
Merge into: lp:openobject-addons/6.0
Diff against target: 12 lines (+1/-1)
1 file modified
mrp/mrp.py (+1/-1)
To merge this branch: bzr merge lp:~toolpart/openobject-addons/mrp_wo_bom
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+77228@code.launchpad.net

Description of the change

A very small fix to allow for production order processing without bom's (provided by other addons).

To post a comment you must log in.

Unmerged revisions

4853. By ViktorNagy

A small fix to allow for bom less production (provided fully by other addons)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'mrp/mrp.py'
2--- mrp/mrp.py 2011-04-04 11:25:26 +0000
3+++ mrp/mrp.py 2011-09-27 20:20:28 +0000
4@@ -832,7 +832,7 @@
5 routing_loc = None
6 pick_type = 'internal'
7 address_id = False
8- if production.bom_id.routing_id and production.bom_id.routing_id.location_id:
9+ if production.bom_id and production.bom_id.routing_id and production.bom_id.routing_id.location_id:
10 routing_loc = production.bom_id.routing_id.location_id
11 if routing_loc.usage <> 'internal':
12 pick_type = 'out'