碰到重建索引问题的解决
-
提示:
2013-05-02 13:12:57,247 4912 [1;31m[1;49mERROR[0m test openerp.osv.osv: Uncau
ght exception
Traceback (most recent call last):
File "C:\GreenOpenERP\openerp\osv\osv.py", line 131, in wrapper
return f(self, dbname, *args, **kwargs)
File "C:\GreenOpenERP\openerp\osv\osv.py", line 197, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "C:\GreenOpenERP\openerp\osv\osv.py", line 185, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "C:\GreenOpenERP\openerp\addons\hr\hr_department.py", line 94, in read
res = super(ir_action_window, self).read(cr, uid, select, fields=fields, con
text=context, load=load)
File "C:\GreenOpenERP\openerp\osv\orm.py", line 3604, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "C:\GreenOpenERP\openerp\osv\orm.py", line 3724, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=
res)
File "C:\GreenOpenERP\openerp\osv\fields.py", line 1131, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "C:\GreenOpenERP\openerp\addons\base\ir\ir_actions.py", line 211, in _sea
rch_view
'search', context=context)
File "C:\GreenOpenERP\openerp\osv\orm.py", line 2260, in fields_view_get
xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id
, context=ctx)
File "C:\GreenOpenERP\openerp\osv\orm.py", line 1913, in __view_look_dom_arch
fields_def = self.__view_look_dom(cr, user, node, view_id, False, fields, co
ntext=context)
File "C:\GreenOpenERP\openerp\osv\orm.py", line 1846, in __view_look_dom
trans = self.pool.get('ir.translation').get_source(cr, user, context['base
model_name'], 'view', context['lang'], node.get('string'))
File "C:\GreenOpenERP\openerp\tools\cache.py", line 18, in lookup
r = self.lookup(self2, cr, *args)
File "C:\GreenOpenERP\openerp\tools\cache.py", line 46, in lookup
value = d[key] = self.method(self2, cr, *args)
File "C:\GreenOpenERP\openerp\addons\base\ir\ir_translation.py", line 288, in
_get_source
cr.execute(query, params)
File "C:\GreenOpenERP\openerp\sql_db.py", line 161, in wrapper
return f(self, *args, **kwargs)
File "C:\GreenOpenERP\openerp\sql_db.py", line 226, in execute
res = self._obj.execute(query, params)
InternalError: index "ir_translation_src_hash_idx" contains unexpected zero page
at block 71
HINT: Please REINDEX it.
以下的解决方法是jeff 给的
附件图