openerp-community team mailing list archive
-
openerp-community team
-
Mailing list archive
-
Message #00981
Re: Migration Error
Hi Miguel,
I have seen this error before.
It happened to me with a database where some modules were uninstalled.
To fix this you need to delete some records in the database for the
uninstalled modules. There are also some ‘fixes’ in the ir_model.py file
you can implement. A couple have already been included in the latest revno
of the openerp-server.
Email me directly for more info as I’m not too sure your level of expertise.
Regards
Colin
*From:* openerp-community-bounces+colin=
publicus-solutions.com@xxxxxxxxxxxxxxxxxxx [mailto:
openerp-community-bounces+colin=publicus-solutions.com@xxxxxxxxxxxxxxxxxxx]
*On Behalf Of *SIESA - Miguel Gutiérrez
*Sent:* 03 May 2012 22:21
*To:* openerp-community@xxxxxxxxxxxxxxxxxxx
*Subject:* [Openerp-community] Migration Error
Hello,
I have a big problem when I restore my DB on my production server it
dont work but in my computer does, both openerp are the same, here the bug
I have
Client Traceback (most recent call last):
File "/srv/openerp/6.1/instances/erp/web/addons/web/common/http.py",
line 180, in dispatch
response["result"] = method(controller, self, **self.params)
File "/srv/openerp/6.1/instances/erp/web/addons/web/controllers/main.py",
line 746, in load
return {'data': self.do_load(req)}
File "/srv/openerp/6.1/instances/erp/web/addons/web/controllers/main.py",
line 785, in do_load
menu_roots = Menus.read(self.do_get_user_roots(req), ['name',
'sequence', 'parent_id'], context)
File "/srv/openerp/6.1/instances/erp/web/addons/web/controllers/main.py",
line 772, in do_get_user_roots
return Menus.search(menu_domain, 0, False, False, context)
File "/srv/openerp/6.1/instances/erp/web/addons/web/common/openerplib/main.py",
line 250, in proxy
args, kw)
File "/srv/openerp/6.1/instances/erp/web/addons/web/common/openerplib/main.py",
line 117, in proxy
result = self.connector.send(self.service_name, method, *args)
File "/srv/openerp/6.1/instances/erp/web/addons/web/common/http.py",
line 611, in send
raise fault
Server Traceback (most recent call last):
File "/srv/openerp/6.1/instances/erp/web/addons/web/common/http.py",
line 592, in send
result = openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/srv/openerp/6.1/src/openobject-server/openerp/netsvc.py",
line 360, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/srv/openerp/6.1/src/openobject-server/openerp/service/web_services.py",
line 585, in dispatch
res = fn(db, uid, *params)
File "/srv/openerp/6.1/src/openobject-server/openerp/osv/osv.py",
line 167, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/srv/openerp/6.1/src/openobject-server/openerp/osv/osv.py",
line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/srv/openerp/6.1/src/openobject-server/openerp/osv/osv.py",
line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/srv/openerp/6.1/src/openobject-server/openerp/osv/osv.py",
line 164, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/srv/openerp/6.1/src/openobject-server/openerp/addons/base/ir/ir_ui_menu.py",
line 123, in search
result = self._filter_visible_menus(cr, uid, ids, context=context)
File "/srv/openerp/6.1/src/openobject-server/openerp/addons/base/ir/ir_ui_menu.py",
line 99, in _filter_visible_menus
if not menu.child_id:
File "/srv/openerp/6.1/src/openobject-server/openerp/osv/orm.py",
line 476, in __getattr__
return self[name]
File "/srv/openerp/6.1/src/openobject-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 "/srv/openerp/6.1/src/openobject-server/openerp/osv/orm.py",
line 3405, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/srv/openerp/6.1/src/openobject-server/openerp/osv/orm.py",
line 3528, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user,
context=context, values=res)
File "/srv/openerp/6.1/src/openobject-server/openerp/osv/fields.py",
line 551, in get
ids2 = obj.pool.get(self._obj).search(cr, user, self._domain +
[(self._fields_id, 'in', ids)], limit=self._limit, context=context)
File "/srv/openerp/6.1/src/openobject-server/openerp/addons/base/ir/ir_ui_menu.py",
line 123, in search
result = self._filter_visible_menus(cr, uid, ids, context=context)
File "/srv/openerp/6.1/src/openobject-server/openerp/addons/base/ir/ir_ui_menu.py",
line 99, in _filter_visible_menus
if not menu.child_id:
File "/srv/openerp/6.1/src/openobject-server/openerp/osv/orm.py",
line 476, in __getattr__
return self[name]
File "/srv/openerp/6.1/src/openobject-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 "/srv/openerp/6.1/src/openobject-server/openerp/osv/orm.py",
line 3405, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/srv/openerp/6.1/src/openobject-server/openerp/osv/orm.py",
line 3528, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user,
context=context, values=res)
File "/srv/openerp/6.1/src/openobject-server/openerp/osv/fields.py",
line 551, in get
ids2 = obj.pool.get(self._obj).search(cr, user, self._domain +
[(self._fields_id, 'in', ids)], limit=self._limit, context=context)
File "/srv/openerp/6.1/src/openobject-server/openerp/addons/base/ir/ir_ui_menu.py",
line 123, in search
result = self._filter_visible_menus(cr, uid, ids, context=context)
File "/srv/openerp/6.1/src/openobject-server/openerp/addons/base/ir/ir_ui_menu.py",
line 99, in _filter_visible_menus
if not menu.child_id:
File "/srv/openerp/6.1/src/openobject-server/openerp/osv/orm.py",
line 476, in __getattr__
return self[name]
File "/srv/openerp/6.1/src/openobject-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 "/srv/openerp/6.1/src/openobject-server/openerp/osv/orm.py",
line 3405, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/srv/openerp/6.1/src/openobject-server/openerp/osv/orm.py",
line 3528, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user,
context=context, values=res)
File "/srv/openerp/6.1/src/openobject-server/openerp/osv/fields.py",
line 551, in get
ids2 = obj.pool.get(self._obj).search(cr, user, self._domain +
[(self._fields_id, 'in', ids)], limit=self._limit, context=context)
File "/srv/openerp/6.1/src/openobject-server/openerp/addons/base/ir/ir_ui_menu.py",
line 123, in search
result = self._filter_visible_menus(cr, uid, ids, context=context)
File "/srv/openerp/6.1/src/openobject-server/openerp/addons/base/ir/ir_ui_menu.py",
line 99, in _filter_visible_menus
if not menu.child_id:
File "/srv/openerp/6.1/src/openobject-server/openerp/osv/orm.py",
line 476, in __getattr__
return self[name]
File "/srv/openerp/6.1/src/openobject-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 "/srv/openerp/6.1/src/openobject-server/openerp/osv/orm.py",
line 3405, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/srv/openerp/6.1/src/openobject-server/openerp/osv/orm.py",
line 3528, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user,
context=context, values=res)
File "/srv/openerp/6.1/src/openobject-server/openerp/osv/fields.py",
line 551, in get
ids2 = obj.pool.get(self._obj).search(cr, user, self._domain +
[(self._fields_id, 'in', ids)], limit=self._limit, context=context)
File "/srv/openerp/6.1/src/openobject-server/openerp/addons/base/ir/ir_ui_menu.py",
line 123, in search
result = self._filter_visible_menus(cr, uid, ids, context=context)
File "/srv/openerp/6.1/src/openobject-server/openerp/addons/base/ir/ir_ui_menu.py",
line 99, in _filter_visible_menus
if not menu.child_id:
File "/srv/openerp/6.1/src/openobject-server/openerp/osv/orm.py",
line 476, in __getattr__
return self[name]
File "/srv/openerp/6.1/src/openobject-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 "/srv/openerp/6.1/src/openobject-server/openerp/osv/orm.py",
line 3405, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/srv/openerp/6.1/src/openobject-server/openerp/osv/orm.py",
line 3528, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user,
context=context, values=res)
File "/srv/openerp/6.1/src/openobject-server/openerp/osv/fields.py",
line 551, in get
ids2 = obj.pool.get(self._obj).search(cr, user, self._domain +
[(self._fields_id, 'in', ids)], limit=self._limit, context=context)
File "/srv/openerp/6.1/src/openobject-server/openerp/addons/base/ir/ir_ui_menu.py",
line 123, in search
result = self._filter_visible_menus(cr, uid, ids, context=context)
File "/srv/openerp/6.1/src/openobject-server/openerp/addons/base/ir/ir_ui_menu.py",
line 95, in _filter_visible_menus
if not modelaccess.check(cr, uid, data[field], 'read', False):
File "/srv/openerp/6.1/src/openobject-server/openerp/tools/cache.py",
line 18, in lookup
r = self.lookup(self2, cr, *args)
File "/srv/openerp/6.1/src/openobject-server/openerp/tools/cache.py",
line 46, in lookup
value = d[args] = self.method(self2, cr, *args)
File "/srv/openerp/6.1/src/openobject-server/openerp/addons/base/ir/ir_model.py",
line 511, in check
if self.pool.get(model_name).is_transient():
AttributeError: 'NoneType' object has no attribute 'is_transient'
--
------------------------------
*Miguel Gutiérrez.*
Encargado de TIC
Departamento de TIC
Tel: (506) 2203-1516
Fax: (506) 2282-2401
Cel: (506) 8368-2912
<http://www.siesacr.com>
References