Procurement: compute stock minimum rules only generates Traceback

Bug #906727 reported by Hardik Ansodariya (OpenERP)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 2

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.

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Mayur Maheshwari(OpenERP) (mma-openerp) wrote :

Hello Hardik,

Thanks for Reporting.
It has been fixed in lp:~openerp-dev/openobject-addons/trunk-bug-906727-mma
Revision ID: <email address hidden>
Revision num: 6060.

It will be available in trunk soon.

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
qdp (OpenERP) (qdp) wrote :

fix released in revision 6197

thanks

Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.