Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 983 |
Technical Name |
file_preivew |
License | OPL-1 |
Website | http://www.funenc.com |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 983 |
Technical Name |
file_preivew |
License | OPL-1 |
Website | http://www.funenc.com |




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