← Back to team overview

openerp-india team mailing list archive

[Bug 906727] Re: Procurement: compute stock minimum rules only generates Traceback

 

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

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

Title:
  Procurement: compute stock minimum rules only generates Traceback

Status in OpenERP Addons (modules):
  In Progress

Bug description:
  Warehouse > scheduler > Procurement Exception > Compute stock minimum
  rules only(wizard)

  # when i run this wizard i got following Traceback

  Traceback (most recent call last):
    File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
      self.run()
    File "/usr/lib/python2.6/threading.py", line 484, in run
      self.__target(*self.__args, **self.__kwargs)
    File "/home/han/rdtool/addons/trunk/procurement/wizard/orderpoint_procurement.py", line 52, in _procure_calculation_orderpoint
      proc_obj._procure_orderpoint_confirm(cr, uid, automatic=proc.automatic, use_new_cursor=cr.dbname, context=context)
    File "/home/han/rdtool/server/trunk/openerp/osv/orm.py", line 476, in __getattr__
      return self[name]
    File "/home/han/rdtool/server/trunk/openerp/osv/orm.py", line 389, in __getitem__
      field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write")
    File "/home/han/rdtool/server/trunk/openerp/osv/orm.py", line 3345, in read
      result = self._read_flat(cr, user, select, fields, context, load)
    File "/home/han/rdtool/server/trunk/openerp/osv/orm.py", line 3404, in _read_flat
      cr.execute(query, (tuple(sub_ids),))
    File "/home/han/rdtool/server/trunk/openerp/sql_db.py", line 152, in wrapper
      raise psycopg2.OperationalError(msg)
  OperationalError: Unable to use a closed cursor.

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


References