openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #25332
[Bug 1224551] Re: 6.1, 7.0 audittrail: crashes on res.users
*** This bug is a duplicate of bug 1157497 ***
https://bugs.launchpad.net/bugs/1157497
Ooops, I just found out this is a duplicate.
Thanks anyway
** This bug has been marked a duplicate of bug 1157497
[trunk/7.0/6.1]Audit Trail doesn't Work For Users & Groups Object
--
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/1224551
Title:
6.1, 7.0 audittrail: crashes on res.users
Status in OpenERP Addons (modules):
New
Bug description:
Tested on runbot today, revisions:
6.1 r7246
7.0 r9437
Does not happen on trunk, on trunk audittrail doesn't log anything
(will fill a separate bug for that)
to reproduce:
- install audittrail
- creale a new audit rule for res.users, subscribe
- change a field on a user, or delete one
Server Traceback (most recent call last):
File "/home/odoo/runbot/static/openerp-dev-7-0-19989/server/openerp/addons/web/session.py", line 89, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/home/odoo/runbot/static/openerp-dev-7-0-19989/server/openerp/netsvc.py", line 292, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/odoo/runbot/static/openerp-dev-7-0-19989/server/openerp/service/web_services.py", line 626, in dispatch
res = fn(db, uid, *params)
File "/home/odoo/runbot/static/openerp-dev-7-0-19989/server/openerp/osv/osv.py", line 188, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/odoo/runbot/static/openerp-dev-7-0-19989/server/openerp/osv/osv.py", line 131, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/odoo/runbot/static/openerp-dev-7-0-19989/server/openerp/osv/osv.py", line 197, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/odoo/runbot/static/openerp-dev-7-0-19989/server/openerp/addons/audittrail/audittrail.py", line 513, in execute_cr
return self.log_fct(cr, uid, model, method, fct_src, *args, **kw)
File "/home/odoo/runbot/static/openerp-dev-7-0-19989/server/openerp/addons/audittrail/audittrail.py", line 284, in log_fct
old_values = self.get_data(cr, uid_orig, pool, res_ids, model, method)
File "/home/odoo/runbot/static/openerp-dev-7-0-19989/server/openerp/addons/audittrail/audittrail.py", line 338, in get_data
values_text[field] = self.get_value_text(cr, SUPERUSER_ID, pool, resource_pool, method, field, resource[field])
File "/home/odoo/runbot/static/openerp-dev-7-0-19989/server/openerp/addons/audittrail/audittrail.py", line 193, in get_value_text
field_obj = (resource_pool._all_columns.get(field)).column
AttributeError: 'NoneType' object has no attribute 'column'
Thanks!
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1224551/+subscriptions
References