Merge lp:~zaber/openobject-addons/order-point-filter into lp:openobject-addons/5.0

Proposed by Don Kirkby
Status: Needs review
Proposed branch: lp:~zaber/openobject-addons/order-point-filter
Merge into: lp:openobject-addons/5.0
Diff against target: 11 lines (+0/-1)
1 file modified
mrp/schedulers.py (+0/-1)
To merge this branch: bzr merge lp:~zaber/openobject-addons/order-point-filter
Reviewer Review Type Date Requested Status
Dukai Gábor Pending
Review via email: mp+94487@code.launchpad.net

This proposal supersedes a proposal from 2012-02-24.

Description of the change

Fix bug 939790 by removing order point filter on purchase_ok flag.

Sorry about the previous two attempts at this merge. I selected the wrong source and the wrong target.

To post a comment you must log in.

Unmerged revisions

2906. By Don Kirkby

[FIX] Orderpoint should not filter based on purchase_ok flag.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'mrp/schedulers.py'
2--- mrp/schedulers.py 2011-01-03 13:07:00 +0000
3+++ mrp/schedulers.py 2012-02-24 01:14:20 +0000
4@@ -187,7 +187,6 @@
5 while ids:
6 ids = orderpoint_obj.search(cr, uid, [
7 ('product_id.active', '=', True),
8- ('product_id.purchase_ok', '=', True),
9 ], offset=offset, limit=100)
10 for op in orderpoint_obj.browse(cr, uid, ids):
11 if op.procurement_id and op.procurement_id.purchase_id and op.procurement_id.purchase_id.state in ('draft', 'confirmed'):