openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #27248
[Bug 1278997] [NEW] Audit Trail leaves "View Log" behind after unistall
Public bug reported:
After uninstalling the Audit Trail addon, the menu item "View Log" is
still there and pressing it shows an error:
Traceback (most recent call last):
File "/.../openerp/openerp/netsvc.py", line 292, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/.../openerp/openerp/service/web_services.py", line 626, in dispatch
res = fn(db, uid, *params)
File "/.../openerp/openerp/osv/osv.py", line 190, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/.../openerp/openerp/osv/osv.py", line 132, in wrapper
return f(self, dbname, *args, **kwargs)
File "/.../openerp/openerp/osv/osv.py", line 199, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/.../openerp/openerp/addons/audittrail/audittrail.py", line 514, in execute_cr
return fct_src(cr, uid, model, method, *args, **kw)
File "/.../openerp/openerp/osv/osv.py", line 187, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/.../openerp/openerp/osv/orm.py", line 3625, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/.../openerp/openerp/osv/orm.py", line 3746, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
File "/.../openerp/openerp/osv/fields.py", line 1142, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/.../openerp/openerp/addons/base/ir/ir_actions.py", line 209, in _search_view
field_get = self.pool[act.res_model].fields_view_get(cr, uid,
File "/.../openerp/openerp/modules/registry.py", line 102, in __getitem__
return self.models[model_name]
KeyError: u'audittrail.log'
Steps to reproduce:
On a clean DB, install Notes and Audit Trail.
Create an Audit Rule to watch Notes (on create, writes, deletes and
actions). Subscribe to it.
Create a note and then switch to list view. The More button displays the
"View Log". Pressing it goes to the audit log.
Now uninstall audit trail.
Go to the created note and switch to list view. The "View Log" is still
under the More button, but now pressing it causes the previous error.
(This also happens with account entries).
OpenERP used: openerp-7.0-20140119-002424
Plataform: Linux pavla 3.8.0-35-generic #50-Ubuntu SMP Tue Dec 3 01:24:59 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1278997
Title:
Audit Trail leaves "View Log" behind after unistall
Status in OpenERP Addons (modules):
New
Bug description:
After uninstalling the Audit Trail addon, the menu item "View Log" is
still there and pressing it shows an error:
Traceback (most recent call last):
File "/.../openerp/openerp/netsvc.py", line 292, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/.../openerp/openerp/service/web_services.py", line 626, in dispatch
res = fn(db, uid, *params)
File "/.../openerp/openerp/osv/osv.py", line 190, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/.../openerp/openerp/osv/osv.py", line 132, in wrapper
return f(self, dbname, *args, **kwargs)
File "/.../openerp/openerp/osv/osv.py", line 199, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/.../openerp/openerp/addons/audittrail/audittrail.py", line 514, in execute_cr
return fct_src(cr, uid, model, method, *args, **kw)
File "/.../openerp/openerp/osv/osv.py", line 187, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/.../openerp/openerp/osv/orm.py", line 3625, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/.../openerp/openerp/osv/orm.py", line 3746, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
File "/.../openerp/openerp/osv/fields.py", line 1142, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/.../openerp/openerp/addons/base/ir/ir_actions.py", line 209, in _search_view
field_get = self.pool[act.res_model].fields_view_get(cr, uid,
File "/.../openerp/openerp/modules/registry.py", line 102, in __getitem__
return self.models[model_name]
KeyError: u'audittrail.log'
Steps to reproduce:
On a clean DB, install Notes and Audit Trail.
Create an Audit Rule to watch Notes (on create, writes, deletes and
actions). Subscribe to it.
Create a note and then switch to list view. The More button displays
the "View Log". Pressing it goes to the audit log.
Now uninstall audit trail.
Go to the created note and switch to list view. The "View Log" is
still under the More button, but now pressing it causes the previous
error.
(This also happens with account entries).
OpenERP used: openerp-7.0-20140119-002424
Plataform: Linux pavla 3.8.0-35-generic #50-Ubuntu SMP Tue Dec 3 01:24:59 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1278997/+subscriptions
Follow ups
References