diff options
| author | Fabien Pinckaers <fp@tinyerp.com> | 2010-01-27 01:33:18 +0100 |
|---|---|---|
| committer | Fabien Pinckaers <fp@tinyerp.com> | 2010-01-27 01:33:18 +0100 |
| commit | e6d46870fd519d935c587bb5a811e486bcfb14f7 (patch) | |
| tree | 0ab9109ce323ccd8509452d2f9b26f5d0c6182b3 /addons/document/document_directory.py | |
| parent | a132f2a6256805d0a5aab51d83e70af880df84dc (diff) | |
[IMP] improve document change
bzr revid: fp@tinyerp.com-20100127003318-1oqkk4f8cyd685kg
Diffstat (limited to 'addons/document/document_directory.py')
| -rw-r--r-- | addons/document/document_directory.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/document/document_directory.py b/addons/document/document_directory.py index cb96ef12a47..ad13ad925e1 100644 --- a/addons/document/document_directory.py +++ b/addons/document/document_directory.py @@ -104,7 +104,7 @@ class document_directory(osv.osv): for d in self.browse(cr, uid, ids, context=context): s = '' d2 = d - while d2: + while d2 and d2.parent_id: s = d2.name + (s and ('/' + s) or '') d2 = d2.parent_id res.append((d.id, s)) |
