openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #11349
[Bug 708595] Re: Scheduler error
Hello Alan Lord,
Its fixed in lp:~openerp-dev/openobject-addons/trunk-bug-708595-ara
branch with following revision.
Revision No: 6786
Revision ID: ara@xxxxxxxxxxx-20120511133631-bxb8cq3msw3kylkl
Thank you,
ara
** 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/708595
Title:
Scheduler error
Status in OpenERP Addons (modules):
Fix Committed
Bug description:
Server is running Ubuntu 10.04.
OpenERP is the 6.0.1 deb from the OpenERP website.
Have been trying to make a demo for a prospect.
Using the "Invoice from Picking" option of a Sales Order with Partial
Delivery and Invoice on Shipped Quantities... I have been trying to
get Invoices to be created when each part of the sales order is picked
and shipped (or at least show in the Sales->Invoices->Lines to Invoice
list). But it doesn't seem to work...
I set the mrp scheduler to run every 5 minutes. This is what I'm
seeing in the logs, and I'm getting the item I'm picking/delivering
being flagged as State "Exception."
** This is in the openerp-server log file when the mrp scheduler runs
automatically every 5 minutes **
[2011-01-27 11:45:28,593][demo_01] WARNING:browse_record:[01]: Field 'purchase_id' does not exist in object 'browse_record(procurement.order, 35)':
[2011-01-27 11:45:28,593][demo_01] WARNING:browse_record:[02]: None
[2011-01-27 11:45:28,594][demo_01] ERROR:netsvc.agent:Job call of self.pool.get('procurement.order').run_scheduler(cr, uid, *(False,)) failed
Traceback (most recent call last):
File "/usr/share/pyshared/openerp-server/addons/base/ir/ir_cron.py", line 94, in _callback
f(cr, uid, *args)
File "/usr/share/pyshared/openerp-server/addons/procurement/procurement.py", line 469, in run_scheduler
use_new_cursor=use_new_cursor, context=context)
File "/usr/share/pyshared/openerp-server/addons/procurement/schedulers.py", line 223, in _procure_orderpoint_confirm
if op.procurement_id and op.procurement_id.purchase_id and op.procurement_id.purchase_id.state in ('draft', 'confirmed'):
File "/usr/share/pyshared/openerp-server/osv/orm.py", line 287, in __getattr__
raise AttributeError(e)
AttributeError: "Field 'purchase_id' does not exist in object 'browse_record(procurement.order, 35)'"
** Here I manually ran the scheduler from the
Warehouse->Schedulers->Compute Schedulers menu **
[2011-01-27 11:46:52,232][demo_01] WARNING:browse_record:[01]: Field 'purchase_id' does not exist in object 'browse_record(procurement.order, 35)':
[2011-01-27 11:46:52,233][demo_01] WARNING:browse_record:[02]: None
[2011-01-27 11:47:18,830][demo_01] WARNING:db.cursor:Cursor not closed explicitly
Please enable sql debugging to trace the caller.
[2011-01-27 11:47:27,516][demo_01] WARNING:db.connection_pool:ConnectionPool(used=0/count=2/max=64): Free leaked connection to 'user=openerp dbname=demo_01'
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/708595/+subscriptions