[Fix]document_page:Field 'document_id' does not exist in object browse_record(document.page.history, 1)
bzr revid: kbh@tinyerp.com-20121112072013-3gjpjlcqml948eao
This commit is contained in:
parent
f605e15039
commit
d65963acf0
|
@ -43,7 +43,7 @@ class showdiff(osv.osv_memory):
|
|||
|
||||
elif len(ids) == 1:
|
||||
old = history.browse(cr, uid, ids[0])
|
||||
nids = history.search(cr, uid, [('document_id', '=', old.document_id.id)])
|
||||
nids = history.search(cr, uid, [('page_id', '=', old.page_id.id)])
|
||||
nids.sort()
|
||||
diff = history.getDiff(cr, uid, ids[0], nids[-1])
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue