~openerp/openobject-addons/saas-3

« back to all changes in this revision

Viewing changes to audittrail/audittrail.py

  • Committer: Denis Ledoux
  • Date: 2014-05-19 13:36:48 UTC
  • mfrom: (8472.1.1584 trunk)
  • Revision ID: dle@openerp.com-20140519133648-rushs310hor2nzox
[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 10056 revid:dle@openerp.com-20140519133339-uxb01aik1z8wu1sy

Show diffs side-by-side

added added

removed removed

Lines of Context:
432
432
                  'old_value_text': key in old_values and old_values[key]['text'].get(field_name)
433
433
            }
434
434
            lines[key].append(data)
 
435
            # On read log add current values for fields.
 
436
            if method == 'read':
 
437
                data={
 
438
                    'name': field_name,
 
439
                    'old_value': key in old_values and old_values[key]['value'].get(field_name),
 
440
                    'old_value_text': key in old_values and old_values[key]['text'].get(field_name)
 
441
                }
 
442
                lines[key].append(data)
435
443
    return lines
436
444
 
437
445
def process_data(cr, uid, pool, res_ids, model, method, old_values=None, new_values=None, field_list=None):