Skip to content

Commit 6c63999

Browse files
committed
Merge PR #552 into 18.0
Signed-off-by ivs-cetmix
2 parents 66b76f5 + a62e036 commit 6c63999

Some content is hidden

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

57 files changed

+51773
-0
lines changed

attachment_preview/README.rst

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

0 commit comments

Comments
 (0)