Comment 9 for bug 903160

Revision history for this message
saad thaifa (saad-thaifa) wrote : 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'