Skip to Content
Menu

file_preview

by
Odoo

192.73

v 12.0 Third Party
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 983
Technical Name file_preivew
LicenseOPL-1
Websitehttp://www.funenc.com
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 983
Technical Name file_preivew
LicenseOPL-1
Websitehttp://www.funenc.com
1
3
2
4
If you need any help or want more features, just contact us:
Email: supports@funenc.com

Installation

To install this module, you must need to install the LibreOffice in your system

  1. you can use the docker image witch we install the LibreOffice in it, the pull uri: registry.cn-chengdu.aliyuncs.com/odoomaster/ubuntu16_libreoffice
  2. you can use the shell script to install the LibreOffice in ubuntu system.
    1. download the libreoffice-shell.zip from http://funenc-file.st.funenc.com/odoo_store_file/file_preview/libreoffice-shell.zip
    2. unzip the zip file and copy the all files to ubuntu, keep all files in the same directory
    3. execute the .sh file

Configration

The configurations are in the module's config file, all the configurations have default values.If you want to change the config, you should to copy the configs to odoo conf and set values. The path can use absolute path or relative path(the root path is odoo data_dir path)

temp_dir:the path to save temporary documents needed for preview, default is ./file_save/temp
libreoffice_cmd_path:
 the path of cmd to execute libreoffice convert, default is /opt/libreoffice7.0/program/soffice
queue_size:the queue's size to convert file to preview, default is 5
cache_type:set the cache is odoo or redis, default is odoo
cache_seconds:over the time, temporary files will be cleaned up, default is 7*60*60*24s
redis_host:if cache_type is redis, set the redis's host, default is 127.0.0.1
redis_port:if cache_type is redis, set the redis's port, default is 6379
redis_password:if cache_type is redis, set the redis's password, default is empty string
redis db:if cache_type is redis, set the used redis db, default is 0

Use

set the binary filed's filename. if not set, can not be previewed!

<field name="binary_field" filename="filename"/>
Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.