This app enables users to edit and collaborate on office documents within Odoo Documents using ONLYOFFICE Docs.
You need an instance of ONLYOFFICE Docs (Document Server) that is resolvable and connectable both from Odoo and any end clients. If that is not the case, use the official ONLYOFFICE Docs documentation page. ONLYOFFICE Docs must also be able to POST to Odoo directly.
The easiest way to start an instance of ONLYOFFICE Docs is to use Docker.
To start using ONLYOFFICE Docs with Odoo, the following steps must be performed:
Option 1. Installation from the administration panel
Option 2. Manual installation
Put ONLYOFFICE connector into /path/to/odoo/addons. Make sure the ONLYOFFICE folder is named as onlyoffice_odoo.
Alternatively, you can add the following lines in the /path/to/odoo/config/odoo.conf file specifying your path to the folder with apps/addons:
[options] addons_path = /mnt/extra-addons
Install the pyjwt package:
pip install pyjwt
To configure the app, go to Settings. Find ONLYOFFICE on the left sidebar and press it. Specify the URL of the installed ONLYOFFICE Docs:
https://<documentserver>/where the documentserver is the name of the server with ONLYOFFICE Docs installed. The address must be accessible from the user browser and from the Odoo server. The Odoo server address must also be accessible from ONLYOFFICE Docs for correct work.
Starting from version 7.2, JWT is enabled by default and the secret key is generated automatically to restrict the access to ONLYOFFICE Docs and for security reasons and data integrity. Specify your own Secret key on the Odoo configuration page. In the ONLYOFFICE Docs config file, specify the same secret key and enable the validation.
The ONLYOFFICE integration follows the API documented here.
Download the Odoo ONLYOFFICE integration app here.