[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:
parent
c3be748708
commit
166c537f10
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue