-
-
Notifications
You must be signed in to change notification settings - Fork 386
[19.0][MIG] attachment_preview: Migration to 19.0 #588
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
Open
gregory-rutecki
wants to merge
43
commits into
OCA:19.0
Choose a base branch
from
gregory-rutecki:19.0-mig-attachment_preview
base: 19.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
0d1f135
[ADD] preliminary port of attachment_preview
hbrunn a969869
[IMP] have titles work everywhere
hbrunn 02eb4d2
[FIX] don't depend on document, the relevant code still lives in web
hbrunn 85aaa6f
[ADD] translations
hbrunn 9c01125
[UPD] use viewerJS 0.5.4, incorporate new suported file types
hbrunn 5ec7398
[FIX] readme 8.0 style
hbrunn eb3be47
Add OCA as author of OCA addons
gurneyalex 7d36ed0
fix travis (flake8)
gurneyalex a8129b8
Slovene translations added
sysadminmatmoz d627907
[UPD] use viewerjs 0.5.7
hbrunn f13e6ef
Translations and templates sync
sysadminmatmoz 968d9fc
[UPD] prefix versions with 8.0
sbidoul 9e4a53c
[MIG] Make modules uninstallable
pedrobaeza 34e5ee1
[MIG] Rename manifest files
pedrobaeza e8f9ed2
remove obsolete .pot files [ci skip]
sbidoul eebb952
[MIG] attachment_preview: Migration to 11.0
tarteo ec68d3a
[FIX] Robustness when attachment not present
astirpe fd8fdc2
[IMP] attachment_preview: Split screen
tarteo 24fd473
[FIX] pylint/javascript-lint
MiquelRForgeFlow 9c9a311
[MIG] attachment_preview: Migration to 12.0
tarteo 54e48e0
Translated using Weblate (Slovenian)
sysadminmatmoz 5ca7e39
fix the visibility of the preview area
khaeusler d7f5f35
attachment_preview 12.0.1.0.1
OCA-git-bot 3065aba
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago a8331b6
[FIX] attachment_preview: start needs to return a promise
hbrunn 019ee65
[UPD] hbrunn's mail address
hbrunn b180c71
attachment_preview 12.0.1.0.2
OCA-git-bot 1164f1f
Added translation using Weblate (Turkish)
yavuzavci 416d3a7
Translated using Weblate (Turkish)
yavuzavci dd9db90
[IMP] attachment_preview: black, isort, prettier
vancouver29 b5e9d06
[MIG] attachment_preview: Migration to 15.0
vancouver29 a753fce
[MIG] attachment_preview: Migration to 15.0
vancouver29 b334d72
[IMP] attachment_preview: fix _onPreviewAttachment and remove class o…
vancouver29 9383e96
Update translation files
weblate 60d70d3
Translated using Weblate (Spanish)
luis-ron 88b7a5d
Translated using Weblate (Italian)
mymage 11225a3
Update translation files
weblate dbedf07
[IMP] attachment_preview: pre-commit auto fixes
ByteMeAsap ea7cefd
[MIG] attachment_preview: Migration to 18.0
ByteMeAsap 48d7c89
[UPD] Update attachment_preview.pot
35218b3
[BOT] post-merge updates
OCA-git-bot 6abfa09
Translated using Weblate (Italian)
mymage 091d58a
[MIG] attachment_preview: Migration to 19.0
gregory-rutecki File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,111 @@ | ||
| .. image:: https://odoo-community.org/readme-banner-image | ||
| :target: https://odoo-community.org/get-involved?utm_source=readme | ||
| :alt: Odoo Community Association | ||
|
|
||
| =================== | ||
| Preview attachments | ||
| =================== | ||
|
|
||
| .. | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! This file is generated by oca-gen-addon-readme !! | ||
| !! changes will be overwritten. !! | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! source digest: sha256:e9abcd982f1b988dc4c79d2c451320fddb5fc1289f44e8b7c178c917b2bd4d1e | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
|
||
| .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
| :target: https://odoo-community.org/page/development-status | ||
| :alt: Beta | ||
| .. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png | ||
| :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
| :alt: License: AGPL-3 | ||
| .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github | ||
| :target: https://github.com/OCA/knowledge/tree/18.0/attachment_preview | ||
| :alt: OCA/knowledge | ||
| .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
| :target: https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-attachment_preview | ||
| :alt: Translate me on Weblate | ||
| .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
| :target: https://runboat.odoo-community.org/builds?repo=OCA/knowledge&target_branch=18.0 | ||
| :alt: Try me on Runboat | ||
|
|
||
| |badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
|
||
| This addon allows to preview attachments supported by | ||
| http://viewerjs.org. | ||
|
|
||
| Currently, that's most Libreoffice files and PDFs. | ||
|
|
||
| |Screenshot of split form view| | ||
|
|
||
| .. |Screenshot of split form view| image:: https://raw.githubusercontent.com/attachment_preview/static/description/screenshot-split.png | ||
|
|
||
| **Table of contents** | ||
|
|
||
| .. contents:: | ||
| :local: | ||
|
|
||
| Installation | ||
| ============ | ||
|
|
||
| For filetype recognition, you'll get the best results by installing | ||
| ``python-magic``: | ||
|
|
||
| sudo apt-get install python-magic | ||
|
|
||
| Usage | ||
| ===== | ||
|
|
||
| The module adds a little print preview icon right of download links for | ||
| attachments or binary fields. When a preview is opened from the | ||
| attachments menu it's shown next to the form view. From this screen you | ||
| can navigate through the attachments using the arrow buttons. Using the | ||
| pop-out button next to the navigational buttons you can open the preview | ||
| in a separate window. | ||
|
|
||
| |Screenshot navigator| | ||
|
|
||
| .. |Screenshot navigator| image:: https://raw.githubusercontent.com/attachment_preview/static/description/screenshot-paginator.png | ||
|
|
||
| Bug Tracker | ||
| =========== | ||
|
|
||
| Bugs are tracked on `GitHub Issues <https://github.com/OCA/knowledge/issues>`_. | ||
| In case of trouble, please check there if your issue has already been reported. | ||
| If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
| `feedback <https://github.com/OCA/knowledge/issues/new?body=module:%20attachment_preview%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
|
||
| Do not contact contributors directly about support or help with technical issues. | ||
|
|
||
| Credits | ||
| ======= | ||
|
|
||
| Authors | ||
| ------- | ||
|
|
||
| * Therp BV | ||
| * Onestein | ||
|
|
||
| Contributors | ||
| ------------ | ||
|
|
||
| - Holger Brunn <mail@hunki-enterprises.com> | ||
| - Dennis Sluijk <d.sluijk@onestein.nl> | ||
|
|
||
| Maintainers | ||
| ----------- | ||
|
|
||
| This module is maintained by the OCA. | ||
|
|
||
| .. image:: https://odoo-community.org/logo.png | ||
| :alt: Odoo Community Association | ||
| :target: https://odoo-community.org | ||
|
|
||
| OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
| mission is to support the collaborative development of Odoo features and | ||
| promote its widespread use. | ||
|
|
||
| This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/18.0/attachment_preview>`_ project on GitHub. | ||
|
|
||
| You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # Copyright 2014 Therp BV (<http://therp.nl>) | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
|
||
| from . import models |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Copyright 2014 Therp BV (<http://therp.nl>) | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
|
||
| { | ||
| "name": "Preview attachments", | ||
| "version": "19.0.1.0.0", | ||
| "author": "Therp BV,Onestein,Odoo Community Association (OCA)", | ||
| "website": "https://github.com/OCA/knowledge", | ||
| "license": "AGPL-3", | ||
| "summary": "Preview attachments supported by Viewer.js", | ||
| "category": "Knowledge Management", | ||
| "depends": ["web", "mail"], | ||
| "data": [], | ||
| "qweb": [], | ||
| "assets": { | ||
| "web._assets_primary_variables": [], | ||
| "web.assets_backend": [ | ||
| "attachment_preview/static/src/js/attachmentPreviewWidget.esm.js", | ||
| "attachment_preview/static/src/js/utils.esm.js", | ||
| "attachment_preview/static/src/js/mail_core/attachment_list.esm.js", | ||
| "attachment_preview/static/src/js/web_views/fields/binary_field.esm.js", | ||
| "attachment_preview/static/src/js/web_views/form/form_compiler.esm.js", | ||
| "attachment_preview/static/src/js/web_views/form/form_controller.esm.js", | ||
| "attachment_preview/static/src/js/web_views/form/form_renderer.esm.js", | ||
| "attachment_preview/static/src/scss/attachment_preview.scss", | ||
| "attachment_preview/static/src/xml/attachment_preview.xml", | ||
| ], | ||
| }, | ||
| "installable": True, | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # Translation of Odoo Server. | ||
| # This file contains the translation of the following modules: | ||
| # * attachment_preview | ||
| # | ||
| msgid "" | ||
| msgstr "" | ||
| "Project-Id-Version: Odoo Server 18.0\n" | ||
| "Report-Msgid-Bugs-To: \n" | ||
| "Last-Translator: \n" | ||
| "Language-Team: \n" | ||
| "MIME-Version: 1.0\n" | ||
| "Content-Type: text/plain; charset=UTF-8\n" | ||
| "Content-Transfer-Encoding: \n" | ||
| "Plural-Forms: \n" | ||
|
|
||
| #. module: attachment_preview | ||
| #: model:ir.model,name:attachment_preview.model_ir_attachment | ||
| msgid "Attachment" | ||
| msgstr "" | ||
|
|
||
| #. module: attachment_preview | ||
| #. odoo-javascript | ||
| #: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0 | ||
| msgid "Open in new page" | ||
| msgstr "" | ||
|
|
||
| #. module: attachment_preview | ||
| #. odoo-javascript | ||
| #: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0 | ||
| msgid "Preview" | ||
| msgstr "" | ||
|
|
||
| #. module: attachment_preview | ||
| #. odoo-javascript | ||
| #: code:addons/attachment_preview/static/src/js/web_views/fields/binary_field.esm.js:0 | ||
| msgid "Preview %s" | ||
| msgstr "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| # Translation of Odoo Server. | ||
| # This file contains the translation of the following modules: | ||
| # * attachment_preview | ||
| # | ||
| msgid "" | ||
| msgstr "" | ||
| "Project-Id-Version: Odoo Server 15.0\n" | ||
| "Report-Msgid-Bugs-To: \n" | ||
| "POT-Creation-Date: 2022-08-23 14:27+0000\n" | ||
| "PO-Revision-Date: 2022-08-23 14:27+0000\n" | ||
| "Last-Translator: \n" | ||
| "Language-Team: \n" | ||
| "Language: \n" | ||
| "MIME-Version: 1.0\n" | ||
| "Content-Type: text/plain; charset=UTF-8\n" | ||
| "Content-Transfer-Encoding: \n" | ||
| "Plural-Forms: \n" | ||
|
|
||
| #. module: attachment_preview | ||
| #: model:ir.model,name:attachment_preview.model_ir_attachment | ||
| msgid "Attachment" | ||
| msgstr "Dateianhang" | ||
|
|
||
| #. module: attachment_preview | ||
| #. openerp-web | ||
| #: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0 | ||
| #, python-format | ||
| msgid "Open in new page" | ||
| msgstr "In neuer Seite öffnen" | ||
|
|
||
| #. module: attachment_preview | ||
| #. openerp-web | ||
| #: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0 | ||
| #, python-format | ||
| msgid "Open preview {{attachmentCard.attachment.name}} in a new tab" | ||
| msgstr "" | ||
|
|
||
| #. module: attachment_preview | ||
| #. openerp-web | ||
| #: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0 | ||
| #, python-format | ||
| msgid "Preview" | ||
| msgstr "Vorschau" | ||
|
|
||
| #. module: attachment_preview | ||
| #. openerp-web | ||
| #: code:addons/attachment_preview/static/src/js/components/chatter/chatter.esm.js:0 | ||
| #, python-format | ||
| msgid "Preview %s" | ||
| msgstr "Vorschau %s" | ||
|
|
||
| #. module: attachment_preview | ||
| #. openerp-web | ||
| #: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0 | ||
| #, python-format | ||
| msgid "Preview {{attachmentCard.attachment.displayName}} in side panel" | ||
| msgstr "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| # Translation of Odoo Server. | ||
| # This file contains the translation of the following modules: | ||
| # * attachment_preview | ||
| # | ||
| # Translators: | ||
| # Antonio Trueba, 2016 | ||
| msgid "" | ||
| msgstr "" | ||
| "Project-Id-Version: knowledge (8.0)\n" | ||
| "Report-Msgid-Bugs-To: \n" | ||
| "POT-Creation-Date: 2015-12-19 10:18+0000\n" | ||
| "PO-Revision-Date: 2023-06-05 17:08+0000\n" | ||
| "Last-Translator: luis-ron <luis.ron@sygel.es>\n" | ||
| "Language-Team: Spanish (http://www.transifex.com/oca/OCA-knowledge-8-0/" | ||
| "language/es/)\n" | ||
| "Language: es\n" | ||
| "MIME-Version: 1.0\n" | ||
| "Content-Type: text/plain; charset=UTF-8\n" | ||
| "Content-Transfer-Encoding: \n" | ||
| "Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
| "X-Generator: Weblate 4.17\n" | ||
|
|
||
| #. module: attachment_preview | ||
| #: model:ir.model,name:attachment_preview.model_ir_attachment | ||
| msgid "Attachment" | ||
| msgstr "Archivo adjunto" | ||
|
|
||
| #. module: attachment_preview | ||
| #. openerp-web | ||
| #: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0 | ||
| #, python-format | ||
| msgid "Open in new page" | ||
| msgstr "Abrir en página nueva" | ||
|
|
||
| #. module: attachment_preview | ||
| #. openerp-web | ||
| #: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0 | ||
| #, python-format | ||
| msgid "Open preview {{attachmentCard.attachment.name}} in a new tab" | ||
| msgstr "" | ||
|
|
||
| #. module: attachment_preview | ||
| #. openerp-web | ||
| #: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0 | ||
| #, python-format | ||
| msgid "Preview" | ||
| msgstr "Vista previa" | ||
|
|
||
| #. module: attachment_preview | ||
| #. openerp-web | ||
| #: code:addons/attachment_preview/static/src/js/components/chatter/chatter.esm.js:0 | ||
| #, python-format | ||
| msgid "Preview %s" | ||
| msgstr "Previsualizar %s" | ||
|
|
||
| #. module: attachment_preview | ||
| #. openerp-web | ||
| #: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0 | ||
| #, python-format | ||
| msgid "Preview {{attachmentCard.attachment.displayName}} in side panel" | ||
| msgstr "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| # Translation of Odoo Server. | ||
| # This file contains the translation of the following modules: | ||
| # * attachment_preview | ||
| # | ||
| # Translators: | ||
| # Paolo Valier, 2016 | ||
| msgid "" | ||
| msgstr "" | ||
| "Project-Id-Version: knowledge (8.0)\n" | ||
| "Report-Msgid-Bugs-To: \n" | ||
| "POT-Creation-Date: 2016-03-05 11:50+0000\n" | ||
| "PO-Revision-Date: 2026-01-10 10:42+0000\n" | ||
| "Last-Translator: mymage <stefano.consolaro@mymage.it>\n" | ||
| "Language-Team: Italian (http://www.transifex.com/oca/OCA-knowledge-8-0/" | ||
| "language/it/)\n" | ||
| "Language: it\n" | ||
| "MIME-Version: 1.0\n" | ||
| "Content-Type: text/plain; charset=UTF-8\n" | ||
| "Content-Transfer-Encoding: \n" | ||
| "Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
| "X-Generator: Weblate 5.10.4\n" | ||
|
|
||
| #. module: attachment_preview | ||
| #: model:ir.model,name:attachment_preview.model_ir_attachment | ||
| msgid "Attachment" | ||
| msgstr "Allegato" | ||
|
|
||
| #. module: attachment_preview | ||
| #. openerp-web | ||
| #: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0 | ||
| #, python-format | ||
| msgid "Open in new page" | ||
| msgstr "Apri in una pagina nuova" | ||
|
|
||
| #. module: attachment_preview | ||
| #. openerp-web | ||
| #: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0 | ||
| #, python-format | ||
| msgid "Open preview {{attachmentCard.attachment.name}} in a new tab" | ||
| msgstr "Apri anteprima {{attachmentCard.attachment.name}} in una nuova scheda" | ||
|
|
||
| #. module: attachment_preview | ||
| #. openerp-web | ||
| #: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0 | ||
| #, python-format | ||
| msgid "Preview" | ||
| msgstr "Anteprima" | ||
|
|
||
| #. module: attachment_preview | ||
| #. openerp-web | ||
| #: code:addons/attachment_preview/static/src/js/components/chatter/chatter.esm.js:0 | ||
| #, python-format | ||
| msgid "Preview %s" | ||
| msgstr "Anteprima %s" | ||
|
|
||
| #. module: attachment_preview | ||
| #. openerp-web | ||
| #: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0 | ||
| #, python-format | ||
| msgid "Preview {{attachmentCard.attachment.displayName}} in side panel" | ||
| msgstr "" | ||
| "Anteprima {{attachmentCard.attachment.displayName}} nel pannello laterale" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
"author": "Therp BV, Onestein, Odoo Community Association (OCA)",Can you fix the spacing, please?