openerp 6.1中的内存错误

时间:2014-03-25 14:51:37

标签: openerp

当物理库存设置为使库存移动到零值时,它会运行很长时间并引发内存错误等错误。
我们需要将近2000种产品存入库存零点。

ERROR:

  File "/home/administrator/workspace/server/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/administrator/workspace/server/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/administrator/workspace/server/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/administrator/workspace/addons/stock/stock.py", line 2665, in action_done
    move_obj.action_done(cr, uid, inventory_move_ids, context=context)
  File "/home/administrator/workspace/addons/stock/stock.py", line 2253, in action_done
    self._create_product_valuation_moves(cr, uid, move, context=context)
  File "/home/administrator/workspace/addons/stock/stock.py", line 2187, in _create_product_valuation_moves
    if move.product_id.valuation == 'real_time': # FIXME: product valuation should perhaps be a property?
  File "/home/administrator/workspace/server/openerp/osv/orm.py", line 476, in __getattr__
    return self[name]
  File "/home/administrator/workspace/server/openerp/osv/orm.py", line 391, in __getitem__
    field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write")
  File "/home/administrator/workspace/server/openerp/osv/orm.py", line 3416, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/home/administrator/workspace/server/openerp/osv/orm.py", line 3476, in _read_flat
    res.extend(cr.dictfetchall())
  File "/usr/lib/python2.7/dist-packages/psycopg2/psycopg1.py", line 91, in dictfetchall
    rows = _2cursor.fetchall(self)
MemoryError

0 个答案:

没有答案