From 206bdaf0f8219a56f972877d28beb469f66f1a42 Mon Sep 17 00:00:00 2001 From: "Sanjay Gohel (Open ERP)" Date: Tue, 6 Nov 2012 12:16:23 +0530 Subject: [PATCH] [IMP]resolve traceback for pages history difference link bzr revid: sgo@tinyerp.com-20121106064623-4kq1cl5xsud4182y --- addons/document_page/wizard/document_page_show_diff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/document_page/wizard/document_page_show_diff.py b/addons/document_page/wizard/document_page_show_diff.py index ab5572768f4..13e8e79b3b7 100644 --- a/addons/document_page/wizard/document_page_show_diff.py +++ b/addons/document_page/wizard/document_page_show_diff.py @@ -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: