← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 708595] Re: [6.0] mrp scheduler errors

 

Hello Alan Lord,

I have tested your scenario with stable 6.0 at my end. But I am not able
to reproduce it.

So would you please elaborate with more or provide the proper steps to
reproduce it.

Thanks.

** Changed in: openobject-addons
       Status: New => Incomplete

-- 
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/708595

Title:
  [6.0] mrp scheduler errors

Status in OpenERP Modules (addons):
  Incomplete

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'





References