[FIX] cope with empty ids

This commit is contained in:
Holger Brunn 2014-09-10 12:21:40 +02:00
parent e6434b12a5
commit bbcf0c0d49

View File

@ -34,6 +34,9 @@ class IrAttachment(Model):
cr, uid,
ids if isinstance(ids, collections.Iterable) else [ids],
context=context):
if not this.id:
result[this.id] = False
continue
extension = ''
if this.datas_fname:
filename, extension = os.path.splitext(this.datas_fname)