Skip to content

[19.0] fs_attachment: missing size parameter in _file_read #556

@ivantodorovich

Description

@ivantodorovich
.../enterprise/documents/controllers/documents.py", line 527, in documents_thumbnail_textual
    head = attachment_read(attachment_sudo, size=self.TEXTUAL_THUMBNAIL_SIZE)
File \"/odoo/external-src/enterprise/documents/tools.py\", line 24, in attachment_read
    return attachment._file_read(attachment.store_fname, size=size)
TypeError: IrAttachment._file_read() got an unexpected keyword argument 'size'

Something missed during the 19.0 migration.
We need to align with :

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions