openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #25448
[Bug 1157497] Re: [trunk/7.0/6.1]Audit Trail doesn't Work For Users & Groups Object
** Changed in: openobject-addons
Status: In Progress => Fix Committed
--
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/1157497
Title:
[trunk/7.0/6.1]Audit Trail doesn't Work For Users & Groups Object
Status in OpenERP Addons (modules):
Fix Committed
Bug description:
Dear Team,
I was installing audittrail module, and the I try to create some Audit
Rules for some object. Everything was okay until I tried to create
Audit Rules for object res.users and res.groups. I found this error
when I create new user, edit or delete a user.
Environment Information :
System : Linux-2.6.32-45-generic-i686-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-45-generic
Operating System Version : #102-Ubuntu SMP Wed Jan 2 21:53:06 UTC 2013
Operating System Architecture : 32bit
Operating System Locale : id_ID.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.1-20121207-003046
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/opt/OpenERP/server/openerp-6.1/openerp/service/netrpc_server.py", line 64, in run
result = netsvc.dispatch_rpc(msg[0], msg[1], msg[2:])
File "/opt/OpenERP/server/openerp-6.1/openerp/netsvc.py", line 360, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/opt/OpenERP/server/openerp-6.1/openerp/service/web_services.py", line 586, in dispatch
res = fn(db, uid, *params)
File "/opt/OpenERP/server/openerp-6.1/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/opt/OpenERP/server/openerp-6.1/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/OpenERP/server/openerp-6.1/openerp/addons/audittrail/audittrail.py", line 494, in execute_cr
return self.log_fct(cr, uid, model, method, fct_src, *args)
File "/opt/OpenERP/server/openerp-6.1/openerp/addons/audittrail/audittrail.py", line 291, in log_fct
old_values = self.get_data(cr, uid_orig, pool, res_ids, model, method)
File "/opt/OpenERP/server/openerp-6.1/openerp/addons/audittrail/audittrail.py", line 335, in get_data
values_text[field] = self.get_value_text(cr, 1, pool, resource_pool, method, field, resource[field])
File "/opt/OpenERP/server/openerp-6.1/openerp/addons/audittrail/audittrail.py", line 192, in get_value_text
field_obj = (resource_pool._all_columns.get(field)).column
AttributeError: 'NoneType' object has no attribute 'column'
I try to dig the reason why the error only occur for res.users and
res.groups. So far I know that in Users and Groups menu, there are
some fields (which is placed in Access Rights tab) that is created NOT
BY class declaration instead by function, so the field is not saved
nor in object neither in class. It is just my thought.
OS: Ubuntu Lucid
OpenERP version: 6.1
Regards,
Togar - ADSOFT
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1157497/+subscriptions