mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-20 19:19:27 -06:00
[FIX] syntax
This commit is contained in:
parent
855d8ecb73
commit
cbe4f15adf
@ -91,7 +91,7 @@ class IrAttachment(Model):
|
|||||||
cr, uid, [('db_datas', '!=', False)], limit=limit, context=context)
|
cr, uid, [('db_datas', '!=', False)], limit=limit, context=context)
|
||||||
logging.info('moving %d attachments to filestore', len(attachment_ids))
|
logging.info('moving %d attachments to filestore', len(attachment_ids))
|
||||||
# attachments can be big, so we read every attachment on its own
|
# attachments can be big, so we read every attachment on its own
|
||||||
for counter, attachment_id in enumerate(attachment_ids, start=1)
|
for counter, attachment_id in enumerate(attachment_ids, start=1):
|
||||||
attachment_data = ir_attachment.read(
|
attachment_data = ir_attachment.read(
|
||||||
cr, uid, [attachment_id], ['datas', 'res_model'],
|
cr, uid, [attachment_id], ['datas', 'res_model'],
|
||||||
context=context)[0]
|
context=context)[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user