无法打开或新建订单
-
Hi,
OpenERP server 5.0.16 running on Ubuntu 10.04.4 LTS
Failed to open a purchase order or create a new purchase order in ether GTK client or web client.
But I can still open or create an order on an old database that's backed up few days ago.
No particular action was made, only daily running.
Anybody has a clue ?
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 299, in dispatch
result = LocalService(service_name)(method, *params)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 77, in call
return getattr(self, method)(*params)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 578, in execute
res = service.execute(db, uid, object, method, *args)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 58, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 119, in execute
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 111, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 1394, in fields_view_get
context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/ir/ir_values.py", line 225, in get
res = filter(bool, map(lambda x: _result_get(x, keys), list(result)))
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/ir/ir_values.py", line 225, in <lambda>
res = filter(bool, map(lambda x: _result_get(x, keys), list(result)))
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/ir/ir_values.py", line 211, in _result_get
datas = self.pool.get(model).read(cr, uid, [id], fields, context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/hr/hr_department.py", line 71, in read
context=context, load=load)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 2234, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 2381, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/fields.py", line 672, in get
res = self._fnct(obj, cr, user, ids, name, self._arg, context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/ir/ir_actions.py", line 165, in _views_get_fnc
res[act.id].append((act.view_id.id, act.view_id.type))
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 240, in getattr
return self[name]
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 236, in getitem
return self._data[self._id][name]
KeyError: 'type'
猜着看像是哪个View出了问题,哪个呢? Department ?
Chip