File tree Expand file tree Collapse file tree 12 files changed +211
-0
lines changed
ir_attachment_show_kanban_view
setup/ir_attachment_show_kanban_view Expand file tree Collapse file tree 12 files changed +211
-0
lines changed Original file line number Diff line number Diff line change 1+ .. image :: https://img.shields.io/badge/licence-AGPL--3-blue.svg
2+ :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
3+ :alt: License: AGPL-3
4+
5+ ==============================
6+ Ir attachment show kanban view
7+ ==============================
8+
9+ * Magnifying glass to open the attachment in the "ir.attachment" "kanban" view.
10+
11+ Bug Tracker
12+ ===========
13+
14+ Bugs are tracked on `GitHub Issues
15+ <https://github.com/avanzosc/odoo-addons/issues> `_. In case of trouble,
16+ please check there if your issue has already been reported. If you spotted
17+ it first, help us smash it by providing detailed and welcomed feedback.
18+
19+ Do not contact contributors directly about support or help with technical issues.
20+
21+ Credits
22+ =======
23+
24+ Contributors
25+ ------------
26+
27+ * Ana Juaristi <anajuaristi@avanzosc.es>
28+ * Alfredo de la Fuente <alfredodelafuente@avanzosc.es>
Original file line number Diff line number Diff line change 1+ # Copyright 2025 Alfredo de la Fuente - AvanzOSC
2+ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
3+ {
4+ "name" : "Ir Attachment Show Kanban View" ,
5+ "version" : "16.0.1.0.0" ,
6+ "category" : "Manufacturing/Manufacturing" ,
7+ "website" : "https://github.com/avanzosc/odoo-addons" ,
8+ "author" : "AvanzOSC" ,
9+ "license" : "AGPL-3" ,
10+ "depends" : [
11+ "mail" ,
12+ ],
13+ "data" : [
14+ "views/ir_attachment_views.xml" ,
15+ ],
16+ "installable" : True ,
17+ }
Original file line number Diff line number Diff line change 1+ # Translation of Odoo Server.
2+ # This file contains the translation of the following modules:
3+ # * ir_attachment_show_kanban_view
4+ #
5+ msgid ""
6+ msgstr ""
7+ "Project-Id-Version : Odoo Server 16.0\n "
8+ "Report-Msgid-Bugs-To : \n "
9+ "POT-Creation-Date : 2025-10-09 10:49+0000\n "
10+ "PO-Revision-Date : 2025-10-09 10:49+0000\n "
11+ "Last-Translator : \n "
12+ "Language-Team : \n "
13+ "MIME-Version : 1.0\n "
14+ "Content-Type : text/plain; charset=UTF-8\n "
15+ "Content-Transfer-Encoding : \n "
16+ "Plural-Forms : \n "
17+
18+ #. module: ir_attachment_show_kanban_view
19+ #: model_terms:ir.ui.view,arch_db: ir_attachment_show_kanban_view.view_document_file_kanban
20+ msgid "View Document"
21+ msgstr ""
Original file line number Diff line number Diff line change 1+ # Translation of Odoo Server.
2+ # This file contains the translation of the following modules:
3+ # * ir_attachment_show_kanban_view
4+ #
5+ msgid ""
6+ msgstr ""
7+ "Project-Id-Version : Odoo Server 16.0\n "
8+ "Report-Msgid-Bugs-To : \n "
9+ "POT-Creation-Date : 2025-10-09 10:49+0000\n "
10+ "PO-Revision-Date : 2025-10-09 10:49+0000\n "
11+ "Last-Translator : \n "
12+ "Language-Team : \n "
13+ "MIME-Version : 1.0\n "
14+ "Content-Type : text/plain; charset=UTF-8\n "
15+ "Content-Transfer-Encoding : \n "
16+ "Plural-Forms : \n "
17+
18+ #. module: ir_attachment_show_kanban_view
19+ #: model_terms:ir.ui.view,arch_db: ir_attachment_show_kanban_view.view_document_file_kanban
20+ msgid "View Document"
21+ msgstr ""
Original file line number Diff line number Diff line change 1+ # Translation of Odoo Server.
2+ # This file contains the translation of the following modules:
3+ # * ir_attachment_show_kanban_view
4+ #
5+ msgid ""
6+ msgstr ""
7+ "Project-Id-Version : Odoo Server 16.0\n "
8+ "Report-Msgid-Bugs-To : \n "
9+ "POT-Creation-Date : 2025-10-09 10:49+0000\n "
10+ "PO-Revision-Date : 2025-10-09 10:49+0000\n "
11+ "Last-Translator : \n "
12+ "Language-Team : \n "
13+ "MIME-Version : 1.0\n "
14+ "Content-Type : text/plain; charset=UTF-8\n "
15+ "Content-Transfer-Encoding : \n "
16+ "Plural-Forms : \n "
17+
18+ #. module: ir_attachment_show_kanban_view
19+ #: model_terms:ir.ui.view,arch_db: ir_attachment_show_kanban_view.view_document_file_kanban
20+ msgid "View Document"
21+ msgstr ""
Original file line number Diff line number Diff line change 1+ # Translation of Odoo Server.
2+ # This file contains the translation of the following modules:
3+ # * ir_attachment_show_kanban_view
4+ #
5+ msgid ""
6+ msgstr ""
7+ "Project-Id-Version : Odoo Server 16.0\n "
8+ "Report-Msgid-Bugs-To : \n "
9+ "POT-Creation-Date : 2025-10-09 10:50+0000\n "
10+ "PO-Revision-Date : 2025-10-09 10:50+0000\n "
11+ "Last-Translator : \n "
12+ "Language-Team : \n "
13+ "MIME-Version : 1.0\n "
14+ "Content-Type : text/plain; charset=UTF-8\n "
15+ "Content-Transfer-Encoding : \n "
16+ "Plural-Forms : \n "
17+
18+ #. module: ir_attachment_show_kanban_view
19+ #: model_terms:ir.ui.view,arch_db: ir_attachment_show_kanban_view.view_document_file_kanban
20+ msgid "View Document"
21+ msgstr "Ver documento"
Original file line number Diff line number Diff line change 1+ # Translation of Odoo Server.
2+ # This file contains the translation of the following modules:
3+ # * ir_attachment_show_kanban_view
4+ #
5+ msgid ""
6+ msgstr ""
7+ "Project-Id-Version : Odoo Server 16.0\n "
8+ "Report-Msgid-Bugs-To : \n "
9+ "POT-Creation-Date : 2025-10-09 10:49+0000\n "
10+ "PO-Revision-Date : 2025-10-09 10:49+0000\n "
11+ "Last-Translator : \n "
12+ "Language-Team : \n "
13+ "MIME-Version : 1.0\n "
14+ "Content-Type : text/plain; charset=UTF-8\n "
15+ "Content-Transfer-Encoding : \n "
16+ "Plural-Forms : \n "
17+
18+ #. module: ir_attachment_show_kanban_view
19+ #: model_terms:ir.ui.view,arch_db: ir_attachment_show_kanban_view.view_document_file_kanban
20+ msgid "View Document"
21+ msgstr ""
Original file line number Diff line number Diff line change 1+ # Translation of Odoo Server.
2+ # This file contains the translation of the following modules:
3+ # * ir_attachment_show_kanban_view
4+ #
5+ msgid ""
6+ msgstr ""
7+ "Project-Id-Version : Odoo Server 16.0\n "
8+ "Report-Msgid-Bugs-To : \n "
9+ "POT-Creation-Date : 2025-10-09 10:48+0000\n "
10+ "PO-Revision-Date : 2025-10-09 10:48+0000\n "
11+ "Last-Translator : \n "
12+ "Language-Team : \n "
13+ "MIME-Version : 1.0\n "
14+ "Content-Type : text/plain; charset=UTF-8\n "
15+ "Content-Transfer-Encoding : \n "
16+ "Plural-Forms : \n "
17+
18+ #. module: ir_attachment_show_kanban_view
19+ #: model_terms:ir.ui.view,arch_db: ir_attachment_show_kanban_view.view_document_file_kanban
20+ msgid "View Document"
21+ msgstr ""
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <odoo >
3+ <record id =" view_document_file_kanban" model =" ir.ui.view" >
4+ <field name =" model" >ir.attachment</field >
5+ <field name =" inherit_id" ref =" mail.view_document_file_kanban" />
6+ <field name =" arch" type =" xml" >
7+ <div class =" o_kanban_details" position =" before" >
8+ <div class =" o_kanban_image" >
9+ <t
10+ t-set =" binaryPreviewable"
11+ t-value =" new RegExp('(image|video|application/pdf|text)').test(record.mimetype.value) && record.type.raw_value === 'binary'"
12+ />
13+ <div
14+ t-attf-class =" o_kanban_image_wrapper #{(webimage or binaryPreviewable) ? 'o_kanban_previewer' : ''}"
15+ >
16+ <a
17+ t-if =" record.id"
18+ t-attf-href =" /web/content/#{record.id.raw_value}?download=false"
19+ target =" _blank"
20+ title =" View Document"
21+ class =" o_attachment_view_button"
22+ >
23+ <i
24+ class =" fa fa-search fa-lg"
25+ style =" position: absolute; top: 5px; right: 5px; color: #666;"
26+ />
27+ </a >
28+ </div >
29+ </div >
30+ </div >
31+ </field >
32+ </record >
33+ </odoo >
You can’t perform that action at this time.
0 commit comments