Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion attachment_preview/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ This addon allows to preview attachments supported by http://viewerjs.org.

Currently, that's most Libreoffice files and PDFs.

.. image:: /attachment_preview/static/description/screenshot-split.png
:alt: Screenshot of split form view
:width: 100%

**Table of contents**

.. contents::
Expand All @@ -46,7 +50,13 @@ Usage
=====

The module adds a little print preview icon right of download links for
attachments or binary fields.
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.

.. image:: /attachment_preview/static/description/screenshot-paginator.png
:alt: Screenshot navigator

Bug Tracker
===========
Expand Down
2 changes: 1 addition & 1 deletion attachment_preview/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "Preview attachments",
"version": "11.0.1.2.0",
"version": "11.0.1.3.0",
"author": "Therp BV,"
"Onestein,"
"Odoo Community Association (OCA)",
Expand Down
2 changes: 1 addition & 1 deletion attachment_preview/models/ir_attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_binary_extension(self, model, ids, binary_field,
ids_to_browse = [_id for _id in ids_to_browse if _id not in result]
for this in self.env[model].with_context(
bin_size=True).browse(ids_to_browse):
if this[binary_field] is None:
if not this[binary_field]:
result[this.id] = False
continue
try:
Expand Down
4 changes: 4 additions & 0 deletions attachment_preview/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
This addon allows to preview attachments supported by http://viewerjs.org.

Currently, that's most Libreoffice files and PDFs.

.. image:: /attachment_preview/static/description/screenshot-split.png
:alt: Screenshot of split form view
:width: 100%
8 changes: 7 additions & 1 deletion attachment_preview/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
The module adds a little print preview icon right of download links for
attachments or binary fields.
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.

.. image:: /attachment_preview/static/description/screenshot-paginator.png
:alt: Screenshot navigator
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 0 additions & 15 deletions attachment_preview/static/src/css/attachment_preview.css

This file was deleted.

Loading