c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #27178
[Bug 798890] Re: [trunk][procurement] MRP Scheduler 'looping' on confirmed procurement past scheduled date
** Changed in: openobject-addons
Status: Confirmed => In Progress
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/798890
Title:
[trunk][procurement] MRP Scheduler 'looping' on confirmed procurement
past scheduled date
Status in OpenERP Modules (addons):
In Progress
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
References