diff options
| author | Ysa (Open ERP) <ysa@tinyerp.co.in> | 2010-04-22 11:41:22 +0530 |
|---|---|---|
| committer | Ysa (Open ERP) <ysa@tinyerp.co.in> | 2010-04-22 11:41:22 +0530 |
| commit | 166c537f10a269a9581cb2fc0ff681b8c3f57a55 (patch) | |
| tree | 61745c3402876ae05bb35833623e1753ac540810 /addons/document/document_directory.py | |
| parent | c3be7487084bf41b69d82873d16be84ee49f6a12 (diff) | |
[FIX] document :- all record delete in document.directory and create new directory then generate the error.
bzr revid: ysa@tinyerp.co.in-20100422061122-jx1q03h95ro3dwsa
Diffstat (limited to 'addons/document/document_directory.py')
| -rw-r--r-- | addons/document/document_directory.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/document/document_directory.py b/addons/document/document_directory.py index c9c124cdfe0..19c4489132c 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: |
