Skip to content

Commit 1bc3a01

Browse files
[MIG] attachment_preview: Migration to 19.0
Changes for Odoo 19 compatibility: - Version bump 18.0 → 19.0 - Remove $o-extra-grid-breakpoints SCSS variable (native xxl breakpoint in Bootstrap 5 / Odoo 19) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ffb9a21 commit 1bc3a01

58 files changed

Lines changed: 51773 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

attachment_preview/README.rst

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
.. image:: https://odoo-community.org/readme-banner-image
2+
:target: https://odoo-community.org/get-involved?utm_source=readme
3+
:alt: Odoo Community Association
4+
5+
===================
6+
Preview attachments
7+
===================
8+
9+
..
10+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11+
!! This file is generated by oca-gen-addon-readme !!
12+
!! changes will be overwritten. !!
13+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14+
!! source digest: sha256:e9abcd982f1b988dc4c79d2c451320fddb5fc1289f44e8b7c178c917b2bd4d1e
15+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16+
17+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
18+
:target: https://odoo-community.org/page/development-status
19+
:alt: Beta
20+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
21+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
22+
:alt: License: AGPL-3
23+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github
24+
:target: https://github.com/OCA/knowledge/tree/18.0/attachment_preview
25+
:alt: OCA/knowledge
26+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27+
:target: https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-attachment_preview
28+
:alt: Translate me on Weblate
29+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/knowledge&target_branch=18.0
31+
:alt: Try me on Runboat
32+
33+
|badge1| |badge2| |badge3| |badge4| |badge5|
34+
35+
This addon allows to preview attachments supported by
36+
http://viewerjs.org.
37+
38+
Currently, that's most Libreoffice files and PDFs.
39+
40+
|Screenshot of split form view|
41+
42+
.. |Screenshot of split form view| image:: https://raw.githubusercontent.com/attachment_preview/static/description/screenshot-split.png
43+
44+
**Table of contents**
45+
46+
.. contents::
47+
:local:
48+
49+
Installation
50+
============
51+
52+
For filetype recognition, you'll get the best results by installing
53+
``python-magic``:
54+
55+
sudo apt-get install python-magic
56+
57+
Usage
58+
=====
59+
60+
The module adds a little print preview icon right of download links for
61+
attachments or binary fields. When a preview is opened from the
62+
attachments menu it's shown next to the form view. From this screen you
63+
can navigate through the attachments using the arrow buttons. Using the
64+
pop-out button next to the navigational buttons you can open the preview
65+
in a separate window.
66+
67+
|Screenshot navigator|
68+
69+
.. |Screenshot navigator| image:: https://raw.githubusercontent.com/attachment_preview/static/description/screenshot-paginator.png
70+
71+
Bug Tracker
72+
===========
73+
74+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/knowledge/issues>`_.
75+
In case of trouble, please check there if your issue has already been reported.
76+
If you spotted it first, help us to smash it by providing a detailed and welcomed
77+
`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**>`_.
78+
79+
Do not contact contributors directly about support or help with technical issues.
80+
81+
Credits
82+
=======
83+
84+
Authors
85+
-------
86+
87+
* Therp BV
88+
* Onestein
89+
90+
Contributors
91+
------------
92+
93+
- Holger Brunn <mail@hunki-enterprises.com>
94+
- Dennis Sluijk <d.sluijk@onestein.nl>
95+
96+
Maintainers
97+
-----------
98+
99+
This module is maintained by the OCA.
100+
101+
.. image:: https://odoo-community.org/logo.png
102+
:alt: Odoo Community Association
103+
:target: https://odoo-community.org
104+
105+
OCA, or the Odoo Community Association, is a nonprofit organization whose
106+
mission is to support the collaborative development of Odoo features and
107+
promote its widespread use.
108+
109+
This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/18.0/attachment_preview>`_ project on GitHub.
110+
111+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

attachment_preview/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright 2014 Therp BV (<http://therp.nl>)
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
from . import models

attachment_preview/__manifest__.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2014 Therp BV (<http://therp.nl>)
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "Preview attachments",
6+
"version": "19.0.1.0.0",
7+
"author": "Therp BV," "Onestein," "Odoo Community Association (OCA)",
8+
"website": "https://github.com/OCA/knowledge",
9+
"license": "AGPL-3",
10+
"summary": "Preview attachments supported by Viewer.js",
11+
"category": "Knowledge Management",
12+
"depends": ["web", "mail"],
13+
"data": [],
14+
"qweb": [],
15+
"assets": {
16+
"web._assets_primary_variables": [],
17+
"web.assets_backend": [
18+
"attachment_preview/static/src/js/attachmentPreviewWidget.esm.js",
19+
"attachment_preview/static/src/js/utils.esm.js",
20+
"attachment_preview/static/src/js/mail_core/attachment_list.esm.js",
21+
"attachment_preview/static/src/js/web_views/fields/binary_field.esm.js",
22+
"attachment_preview/static/src/js/web_views/form/form_compiler.esm.js",
23+
"attachment_preview/static/src/js/web_views/form/form_controller.esm.js",
24+
"attachment_preview/static/src/js/web_views/form/form_renderer.esm.js",
25+
"attachment_preview/static/src/scss/attachment_preview.scss",
26+
"attachment_preview/static/src/xml/attachment_preview.xml",
27+
],
28+
},
29+
"installable": True,
30+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * attachment_preview
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 18.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: attachment_preview
17+
#: model:ir.model,name:attachment_preview.model_ir_attachment
18+
msgid "Attachment"
19+
msgstr ""
20+
21+
#. module: attachment_preview
22+
#. odoo-javascript
23+
#: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0
24+
msgid "Open in new page"
25+
msgstr ""
26+
27+
#. module: attachment_preview
28+
#. odoo-javascript
29+
#: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0
30+
msgid "Preview"
31+
msgstr ""
32+
33+
#. module: attachment_preview
34+
#. odoo-javascript
35+
#: code:addons/attachment_preview/static/src/js/web_views/fields/binary_field.esm.js:0
36+
msgid "Preview %s"
37+
msgstr ""

attachment_preview/i18n/de.po

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * attachment_preview
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 15.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2022-08-23 14:27+0000\n"
10+
"PO-Revision-Date: 2022-08-23 14:27+0000\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"Language: \n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: \n"
17+
"Plural-Forms: \n"
18+
19+
#. module: attachment_preview
20+
#: model:ir.model,name:attachment_preview.model_ir_attachment
21+
msgid "Attachment"
22+
msgstr "Dateianhang"
23+
24+
#. module: attachment_preview
25+
#. openerp-web
26+
#: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0
27+
#, python-format
28+
msgid "Open in new page"
29+
msgstr "In neuer Seite öffnen"
30+
31+
#. module: attachment_preview
32+
#. openerp-web
33+
#: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0
34+
#, python-format
35+
msgid "Open preview {{attachmentCard.attachment.name}} in a new tab"
36+
msgstr ""
37+
38+
#. module: attachment_preview
39+
#. openerp-web
40+
#: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0
41+
#, python-format
42+
msgid "Preview"
43+
msgstr "Vorschau"
44+
45+
#. module: attachment_preview
46+
#. openerp-web
47+
#: code:addons/attachment_preview/static/src/js/components/chatter/chatter.esm.js:0
48+
#, python-format
49+
msgid "Preview %s"
50+
msgstr "Vorschau %s"
51+
52+
#. module: attachment_preview
53+
#. openerp-web
54+
#: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0
55+
#, python-format
56+
msgid "Preview {{attachmentCard.attachment.displayName}} in side panel"
57+
msgstr ""

attachment_preview/i18n/es.po

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * attachment_preview
4+
#
5+
# Translators:
6+
# Antonio Trueba, 2016
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: knowledge (8.0)\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2015-12-19 10:18+0000\n"
12+
"PO-Revision-Date: 2023-06-05 17:08+0000\n"
13+
"Last-Translator: luis-ron <luis.ron@sygel.es>\n"
14+
"Language-Team: Spanish (http://www.transifex.com/oca/OCA-knowledge-8-0/"
15+
"language/es/)\n"
16+
"Language: es\n"
17+
"MIME-Version: 1.0\n"
18+
"Content-Type: text/plain; charset=UTF-8\n"
19+
"Content-Transfer-Encoding: \n"
20+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
21+
"X-Generator: Weblate 4.17\n"
22+
23+
#. module: attachment_preview
24+
#: model:ir.model,name:attachment_preview.model_ir_attachment
25+
msgid "Attachment"
26+
msgstr "Archivo adjunto"
27+
28+
#. module: attachment_preview
29+
#. openerp-web
30+
#: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0
31+
#, python-format
32+
msgid "Open in new page"
33+
msgstr "Abrir en página nueva"
34+
35+
#. module: attachment_preview
36+
#. openerp-web
37+
#: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0
38+
#, python-format
39+
msgid "Open preview {{attachmentCard.attachment.name}} in a new tab"
40+
msgstr ""
41+
42+
#. module: attachment_preview
43+
#. openerp-web
44+
#: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0
45+
#, python-format
46+
msgid "Preview"
47+
msgstr "Vista previa"
48+
49+
#. module: attachment_preview
50+
#. openerp-web
51+
#: code:addons/attachment_preview/static/src/js/components/chatter/chatter.esm.js:0
52+
#, python-format
53+
msgid "Preview %s"
54+
msgstr "Previsualizar %s"
55+
56+
#. module: attachment_preview
57+
#. openerp-web
58+
#: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0
59+
#, python-format
60+
msgid "Preview {{attachmentCard.attachment.displayName}} in side panel"
61+
msgstr ""

attachment_preview/i18n/it.po

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * attachment_preview
4+
#
5+
# Translators:
6+
# Paolo Valier, 2016
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: knowledge (8.0)\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2016-03-05 11:50+0000\n"
12+
"PO-Revision-Date: 2026-01-10 10:42+0000\n"
13+
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
14+
"Language-Team: Italian (http://www.transifex.com/oca/OCA-knowledge-8-0/"
15+
"language/it/)\n"
16+
"Language: it\n"
17+
"MIME-Version: 1.0\n"
18+
"Content-Type: text/plain; charset=UTF-8\n"
19+
"Content-Transfer-Encoding: \n"
20+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
21+
"X-Generator: Weblate 5.10.4\n"
22+
23+
#. module: attachment_preview
24+
#: model:ir.model,name:attachment_preview.model_ir_attachment
25+
msgid "Attachment"
26+
msgstr "Allegato"
27+
28+
#. module: attachment_preview
29+
#. openerp-web
30+
#: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0
31+
#, python-format
32+
msgid "Open in new page"
33+
msgstr "Apri in una pagina nuova"
34+
35+
#. module: attachment_preview
36+
#. openerp-web
37+
#: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0
38+
#, python-format
39+
msgid "Open preview {{attachmentCard.attachment.name}} in a new tab"
40+
msgstr "Apri anteprima {{attachmentCard.attachment.name}} in una nuova scheda"
41+
42+
#. module: attachment_preview
43+
#. openerp-web
44+
#: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0
45+
#, python-format
46+
msgid "Preview"
47+
msgstr "Anteprima"
48+
49+
#. module: attachment_preview
50+
#. openerp-web
51+
#: code:addons/attachment_preview/static/src/js/components/chatter/chatter.esm.js:0
52+
#, python-format
53+
msgid "Preview %s"
54+
msgstr "Anteprima %s"
55+
56+
#. module: attachment_preview
57+
#. openerp-web
58+
#: code:addons/attachment_preview/static/src/xml/attachment_preview.xml:0
59+
#, python-format
60+
msgid "Preview {{attachmentCard.attachment.displayName}} in side panel"
61+
msgstr ""
62+
"Anteprima {{attachmentCard.attachment.displayName}} nel pannello laterale"

0 commit comments

Comments
 (0)