[FIX] document :- all record delete in document.directory and create new directory then generate the error.

bzr revid: ysa@tinyerp.co.in-20100422061122-jx1q03h95ro3dwsa
This commit is contained in:
Ysa (Open ERP) 2010-04-22 11:41:22 +05:30
parent c3be748708
commit 166c537f10
1 changed files with 4 additions and 0 deletions

View File

@ -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: