mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-27 02:48:41 -06:00
[FIX] Robustness when attachment not present
This commit is contained in:
parent
25cfa6434c
commit
e8e6b34688
@ -41,7 +41,7 @@ class IrAttachment(models.Model):
|
||||
ids_to_browse = [_id for _id in ids_to_browse if _id not in result]
|
||||
for this in self.env[model].with_context(
|
||||
bin_size=True).browse(ids_to_browse):
|
||||
if this[binary_field] is None:
|
||||
if not this[binary_field]:
|
||||
result[this.id] = False
|
||||
continue
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user