← Back to team overview

openerp-india team mailing list archive

[Bug 798890] Re: [trunk][procurement] MRP Scheduler 'looping' on confirmed procurement past scheduled date

 

Hello,

It has been Fixed in http://bazaar.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-798890-ksa
Revision ID: ksa@xxxxxxxxxxx-20111116053112-ny7rsc97s0obtq0r 
Revision NO: 5507

Thanks.

** Changed in: openobject-addons
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/798890

Title:
  [trunk][procurement] MRP Scheduler 'looping' on confirmed procurement
  past scheduled date

Status in OpenERP Addons (modules):
  Fix Committed

Bug description:
  I'm not quite certain how the procurement got to this state to begin with, but there seems to be an issue which will cause the scheduler to loop under the following conditions:
   1. The Procurement Order scheduled date is in the past
   2. The state is confirmed
   3. The move is not cancelled (it can be done or confirmed)

  I realize that it shouldn't be in that state - however, the scheduler should handle it a tad more gracefully. Right now it continually loops on the record and the job runs continually. The offending while statement is in the schedulers.py procure_confirm() - you can see that it will never return from the loop under this scenario as it will always be true and will always return ids. 
  I would suggest changing the while to a for loop and just process all the ids, unless there's something I'm missing.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/798890/+subscriptions