openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #23549
[Bug 1125755] [NEW] Audit on product fails
Public bug reported:
Create new audit rule for product causes error when viewing product form
or when saving product form. Unsubscribe and error goes away.
OpenERP v7, OSX v10.8.2,Safari.
Client Traceback (most recent call last):
File "/opt/openerp/web/addons/web/http.py", line 195, in dispatch
response["result"] = method(self, **self.params)
File "/opt/openerp/web/addons/web/controllers/main.py", line 1079, in call_kw
return self._call_kw(req, model, method, args, kwargs)
File "/opt/openerp/web/addons/web/controllers/main.py", line 1071, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "/opt/openerp/web/addons/web/session.py", line 43, in proxy
result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
File "/opt/openerp/web/addons/web/session.py", line 31, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/opt/openerp/web/addons/web/session.py", line 104, in send
raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)
Server Traceback (most recent call last):
File "/opt/openerp/web/addons/web/session.py", line 90, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/opt/openerp/server/openerp/netsvc.py", line 295, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/opt/openerp/server/openerp/service/web_services.py", line 614, in dispatch
res = fn(db, uid, *params)
File "/opt/openerp/server/openerp/osv/osv.py", line 169, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/opt/openerp/server/openerp/osv/osv.py", line 123, in wrapper
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/server/openerp/osv/osv.py", line 179, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/addons/audittrail/audittrail.py", line 513, in execute_cr
return self.log_fct(cr, uid, model, method, fct_src, *args, **kw)
File "/opt/openerp/addons/audittrail/audittrail.py", line 303, in log_fct
self.process_data(cr, uid_orig, pool, res_ids, model, method, old_values, new_values, field_list)
File "/opt/openerp/addons/audittrail/audittrail.py", line 462, in process_data
name = pool.get(model.model).name_get(cr, uid, [resource_id])[0][1]
File "/opt/openerp/addons/product/product.py", line 636, in name_get
sellers = filter(lambda x: x.name.id == partner_id, product.seller_ids)
File "/opt/openerp/server/openerp/osv/orm.py", line 486, in __getattr__
raise AttributeError(e)
AttributeError: 'Field seller_ids not found in browse_record(product.product, 3)'
** 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/1125755
Title:
Audit on product fails
Status in OpenERP Addons (modules):
New
Bug description:
Create new audit rule for product causes error when viewing product
form or when saving product form. Unsubscribe and error goes away.
OpenERP v7, OSX v10.8.2,Safari.
Client Traceback (most recent call last):
File "/opt/openerp/web/addons/web/http.py", line 195, in dispatch
response["result"] = method(self, **self.params)
File "/opt/openerp/web/addons/web/controllers/main.py", line 1079, in call_kw
return self._call_kw(req, model, method, args, kwargs)
File "/opt/openerp/web/addons/web/controllers/main.py", line 1071, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "/opt/openerp/web/addons/web/session.py", line 43, in proxy
result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
File "/opt/openerp/web/addons/web/session.py", line 31, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/opt/openerp/web/addons/web/session.py", line 104, in send
raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)
Server Traceback (most recent call last):
File "/opt/openerp/web/addons/web/session.py", line 90, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/opt/openerp/server/openerp/netsvc.py", line 295, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/opt/openerp/server/openerp/service/web_services.py", line 614, in dispatch
res = fn(db, uid, *params)
File "/opt/openerp/server/openerp/osv/osv.py", line 169, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/opt/openerp/server/openerp/osv/osv.py", line 123, in wrapper
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/server/openerp/osv/osv.py", line 179, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/addons/audittrail/audittrail.py", line 513, in execute_cr
return self.log_fct(cr, uid, model, method, fct_src, *args, **kw)
File "/opt/openerp/addons/audittrail/audittrail.py", line 303, in log_fct
self.process_data(cr, uid_orig, pool, res_ids, model, method, old_values, new_values, field_list)
File "/opt/openerp/addons/audittrail/audittrail.py", line 462, in process_data
name = pool.get(model.model).name_get(cr, uid, [resource_id])[0][1]
File "/opt/openerp/addons/product/product.py", line 636, in name_get
sellers = filter(lambda x: x.name.id == partner_id, product.seller_ids)
File "/opt/openerp/server/openerp/osv/orm.py", line 486, in __getattr__
raise AttributeError(e)
AttributeError: 'Field seller_ids not found in browse_record(product.product, 3)'
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1125755/+subscriptions
Follow ups
References