← Back to team overview

openerp-community-reviewer team mailing list archive

[Merge] lp:~arthru/ocb-addons/fix-1334657 into lp:ocb-addons

 

arthru has proposed merging lp:~arthru/ocb-addons/fix-1334657 into lp:ocb-addons.

Requested reviews:
  OpenERP Community Backports (ocb)

For more details, see:
https://code.launchpad.net/~arthru/ocb-addons/fix-1334657/+merge/224623

Fix the bug lp:1334657 : makes it possible to exit the loop
-- 
https://code.launchpad.net/~arthru/ocb-addons/fix-1334657/+merge/224623
Your team OpenERP Community Backports is requested to review the proposed merge of lp:~arthru/ocb-addons/fix-1334657 into lp:ocb-addons.
=== modified file 'procurement/schedulers.py'
--- procurement/schedulers.py	2014-03-10 08:54:20 +0000
+++ procurement/schedulers.py	2014-06-26 13:31:59 +0000
@@ -82,7 +82,6 @@
                     if maxdate >= proc.date_planned:
                         wf_service.trg_validate(uid, 'procurement.order', proc.id, 'button_check', cr)
                     else:
-                        offset += 1
                         report_later += 1
 
                     if proc.state == 'exception':
@@ -91,6 +90,7 @@
                                     proc.product_id.name))
                         report_except += 1
                     report_total += 1
+                offset += len(ids)
                 if use_new_cursor:
                     cr.commit()
                 if not ids:


Follow ups