Skip to content

Conversation

@ByteMeAsap
Copy link

No description provided.

@ByteMeAsap ByteMeAsap force-pushed the 18.0-mig-attachment_preview branch 15 times, most recently from 5a9e1bc to 4675660 Compare July 15, 2025 07:22
astirpe and others added 22 commits December 22, 2025 10:04
[REM] Old files

[ADD] Magic to travis file

[FIX] Nagivation refresh widget
Currently translated at 100.0% (2 of 2 strings)

Translation: knowledge-12.0/knowledge-12.0-attachment_preview
Translate-URL: https://translation.odoo-community.org/projects/knowledge-12-0/knowledge-12-0-attachment_preview/sl/
Currently translated at 100.0% (2 of 2 strings)

Translation: knowledge-12.0/knowledge-12.0-attachment_preview
Translate-URL: https://translation.odoo-community.org/projects/knowledge-12-0/knowledge-12-0-attachment_preview/tr/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: knowledge-15.0/knowledge-15.0-attachment_preview
Translate-URL: https://translation.odoo-community.org/projects/knowledge-15-0/knowledge-15-0-attachment_preview/
Currently translated at 100.0% (4 of 4 strings)

Translation: knowledge-15.0/knowledge-15.0-attachment_preview
Translate-URL: https://translation.odoo-community.org/projects/knowledge-15-0/knowledge-15-0-attachment_preview/es/
Currently translated at 100.0% (4 of 4 strings)

Translation: knowledge-15.0/knowledge-15.0-attachment_preview
Translate-URL: https://translation.odoo-community.org/projects/knowledge-15-0/knowledge-15-0-attachment_preview/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: knowledge-15.0/knowledge-15.0-attachment_preview
Translate-URL: https://translation.odoo-community.org/projects/knowledge-15-0/knowledge-15-0-attachment_preview/
@ByteMeAsap ByteMeAsap force-pushed the 18.0-mig-attachment_preview branch from 8470908 to 52934ee Compare December 22, 2025 04:34
@ByteMeAsap
Copy link
Author

@ByteMeAsap thank you for your contribution! Please squash the last two commits. Also please squash all the administrative commits with the [UPD] tag if you feel comfortable to do this.
Done !!

Copy link

@tendil tendil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ByteMeAsap thank you for your contribution!
Please check my comments

_inherit = "ir.attachment"

@api.model
def get_binary_extension(self, model, ids, binary_field, filename_field=None):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all methods must have a clear dockstring in the standard format, please add

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tendil this is a migration PR, so the code stays as is

Copy link

@Aldeigja Aldeigja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ByteMeAsap I'm not sure if this is a migration issue, but it seems that preview is currently not working for LibreOffice files.
Tested on version 14, it works there.

Increased code coverage

Changed layout of attachment_preview buttons

Updates

Minor updates
@ByteMeAsap ByteMeAsap force-pushed the 18.0-mig-attachment_preview branch from 52934ee to b7f83ed Compare December 26, 2025 10:24
@ByteMeAsap
Copy link
Author

@ByteMeAsap I'm not sure if this is a migration issue, but it seems that preview is currently not working for LibreOffice files. Tested on version 14, it works there.

The preview does work for LibreOffice files, the problem is it doesn't do that unless the attachmentlist is reloaded after uploading the file

Copy link

@tendil tendil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review: LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.