-
-
Notifications
You must be signed in to change notification settings - Fork 377
[18.0][MIG] attachment_preview: Migration to 18.0 #552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 18.0
Are you sure you want to change the base?
Conversation
In order to get visibility on https://www.odoo.com/apps the OCA board has decided to add the OCA as author of all the addons maintained as part of the association.
5a9e1bc to
4675660
Compare
|
@ByteMeAsap thank you for your contribution! Please squash the last two commits. Also please squash all the administrative commits with the |
[FIX] Lint [FIX] lint and flake [ADD] tests [ADD] tests [ADD] tests [ADD] Tests [ADD] Package python-magic [ADD] Tests [FIX] Lint
[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/
…_attachment_preview
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/
Increased code coverage Changed layout of attachment_preview buttons Updates
8470908 to
52934ee
Compare
|
tendil
left a comment
There was a problem hiding this 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
| @@ -0,0 +1,3 @@ | |||
| ## Addon icon | |||
|
|
|||
| - courtesy of <http://commons.wikimedia.org/wiki/Crystal_Clear> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove references in CREDITS.md of past financed migrations by other companies.
wiki/Migration-to-version-18.0
| ], | ||
| "web.assets_frontend": [], | ||
| "web.assets_tests": [], | ||
| "web.qunit_suite_tests": [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove all empty lines
| self.env[model].with_context(bin_size=True).browse(ids_to_browse) | ||
| ): | ||
| result[this.id] = False | ||
| # result[this.id] = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove unused code
| if model == self._name and binary_field == "datas" and this.store_fname: | ||
| if ( | ||
| model == self._name and binary_field == "datas" and this.store_fname | ||
| ): # pragma: no cover |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we deliberately do not test this execution path? (# pragma: no cover)
| _inherit = "ir.attachment" | ||
|
|
||
| @api.model | ||
| def get_binary_extension(self, model, ids, binary_field, filename_field=None): |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Aldeigja
left a comment
There was a problem hiding this 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.

No description provided.