openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #09298
[Bug 903160] Re: audit_trail module does not records logs the 0ne2many fields
Hello,
I have the same bug when I try to modify a meeting in calendar view :
2012-03-21 17:31:03,493 4332 ERROR ? openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
File "/home/saad/b2s_server/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/saad/b2s_server/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/saad/b2s_server/openerp/addons/audittrail/audittrail.py", line 516, in execute_cr
return self.log_fct(cr, uid, model, method, fct_src, *args, **kw)
File "/home/saad/b2s_server/openerp/addons/audittrail/audittrail.py", line 305, in log_fct
self.process_data(cr, uid_orig, pool, res_ids, model, method, old_values, new_values, field_list)
File "/home/saad/b2s_server/openerp/addons/audittrail/audittrail.py", line 463, in process_data
lines = self.prepare_audittrail_log_line(cr, uid, pool, model, res_id, method, old_values, new_values, field_list)
File "/home/saad/b2s_server/openerp/addons/audittrail/audittrail.py", line 430, in prepare_audittrail_log_line
if key not in old_values or key not in new_values or old_values[key]['value'][field_name] != new_values[key]['value'][field_name]:
KeyError: 'duration'
--
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/903160
Title:
audit_trail module does not records logs the 0ne2many fields
Status in OpenERP Addons (modules):
Confirmed
Bug description:
I have installed audit_trail module and made audit rule for
purchase.order and purchase.order.line object for create,write and
unlink method. Also I have subscribed both rules.
Now, i have made a purchase order with 2 lines of products in it.
Now again I have open that purchase order (obviously now that purchase
order is in write mode) and made a change in one of purchase order
line's requested "Quantity" and "UOM" fields.
After that I have seen the audit logs for both objects. I was not able
to see the log of changed values of "Quantity" and "UOM" in
purchase.order.line object.
Is this bug in openerp?
Thanks in Advance.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/903160/+subscriptions
References