← Back to team overview

credativ team mailing list archive

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

 

Hello John B,
Before checking the fix done by above mentioned branch, I would like to know the whole problem in depth again, (sorry for delay)
As all others problems seems not raised now, I am considering that there is only one problem and which is of looping,
According to me it is fine with a while loop as it serves its own purpose here for scheduler,

We need to understand why/how there is a infinite loop happening in your case, 
Can you please elaborate more with example/cases with proper configuration so we can investigate more on that way,

Thanks for reporting,

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

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, 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):
  Incomplete

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