From 166c537f10a269a9581cb2fc0ff681b8c3f57a55 Mon Sep 17 00:00:00 2001 From: "Ysa (Open ERP)" Date: Thu, 22 Apr 2010 11:41:22 +0530 Subject: [PATCH] [FIX] document :- all record delete in document.directory and create new directory then generate the error. bzr revid: ysa@tinyerp.co.in-20100422061122-jx1q03h95ro3dwsa --- addons/document/document_directory.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/document/document_directory.py b/addons/document/document_directory.py index c9c124c..19c4489 100644 --- a/addons/document/document_directory.py +++ b/addons/document/document_directory.py @@ -105,7 +105,11 @@ class document_directory(osv.osv): ] def name_get(self, cr, uid, ids, context={}): res = [] + all_ids = self.search(cr,uid,[]) for d in self.browse(cr, uid, ids, context=context): + if d.id not in all_ids: + continue + s = '' d2 = d while d2 and d2.parent_id: -- 1.7.10.4