diff --git a/muk_web_preview_msoffice/__manifest__.py b/muk_web_preview_msoffice/__manifest__.py
index dae23ba..551b265 100644
--- a/muk_web_preview_msoffice/__manifest__.py
+++ b/muk_web_preview_msoffice/__manifest__.py
@@ -20,7 +20,7 @@
{
"name": "MuK Preview MS Office",
"summary": """MS Office Preview""",
- "version": "11.0.2.0.1",
+ "version": "11.0.2.0.2",
"category": "Extra Tools",
"license": "AGPL-3",
"website": "http://www.mukit.at",
diff --git a/muk_web_preview_msoffice/doc/index.rst b/muk_web_preview_msoffice/doc/index.rst
index 1224828..90a445e 100644
--- a/muk_web_preview_msoffice/doc/index.rst
+++ b/muk_web_preview_msoffice/doc/index.rst
@@ -15,10 +15,70 @@ Installation
To install this module, you need to:
Download the module and add it to your Odoo addons folder. Afterward, log on to
-your Odoo server and go to the Apps menu. Trigger the debug modus and update the
+your Odoo server and go to the Apps menu. Trigger the debug mode and update the
list by clicking on the "Update Apps List" link. Now install the module by
clicking on the install button.
+Another way to install this module is via the package management for Python
+(`PyPI `_).
+
+To install our modules using the package manager make sure
+`odoo-autodiscover `_ is installed
+correctly. Then open a console and install the module by entering the following
+command:
+
+``pip install --extra-index-url https://nexus.mukit.at/repository/odoo/simple ``
+
+The module name consists of the Odoo version and the module name, where
+underscores are replaced by a dash.
+
+**Module:**
+
+``odoo-addon-``
+
+**Example:**
+
+``sudo -H pip3 install --extra-index-url https://nexus.mukit.at/repository/odoo/simple odoo11-addon-muk-utils``
+
+Once the installation has been successfully completed, the app is already in the
+correct folder. Log on to your Odoo server and go to the Apps menu. Trigger the
+debug mode and update the list by clicking on the "Update Apps List" link. Now
+install the module by clicking on the install button.
+
+The biggest advantage of this variant is that you can now also update the app
+using the "pip" command. To do this, enter the following command in your console:
+
+``pip install --upgrade --extra-index-url https://nexus.mukit.at/repository/odoo/simple ``
+
+When the process is finished, restart your server and update the application in
+Odoo. The steps are the same as for the installation only the button has changed
+from "Install" to "Upgrade".
+
+You can also view available Apps directly in our `repository `_
+and find a more detailed installation guide on our `website `_.
+
+For modules licensed under OPL-1, you will receive access data when you purchase
+the module. If the modules were not purchased directly from
+`MuK IT `_ please contact our support (support@mukit.at)
+with a confirmation of purchase to receive the corresponding access data.
+
+Upgrade
+============
+
+To upgrade this module, you need to:
+
+Download the module and add it to your Odoo addons folder. Restart the server
+and log on to your Odoo server. Select the Apps menu and upgrade the module by
+clicking on the upgrade button.
+
+If you installed the module using the "pip" command, you can also update the
+module in the same way. Just type the following command into the console:
+
+``pip install --upgrade --extra-index-url https://nexus.mukit.at/repository/odoo/simple ``
+
+When the process is finished, restart your server and update the application in
+Odoo, just like you would normally.
+
Configuration
=============
diff --git a/muk_web_preview_msoffice/static/src/less/preview_content.less b/muk_web_preview_msoffice/static/src/less/preview_content.less
index 77acd2f..a1c43cc 100644
--- a/muk_web_preview_msoffice/static/src/less/preview_content.less
+++ b/muk_web_preview_msoffice/static/src/less/preview_content.less
@@ -22,7 +22,6 @@
width: 100%;
height: 100%;
- /* Based on Bootstrap Line Tabs by @keenthemes, Licensed under MIT */
.excel-container {
display: none;
width: 100%;
diff --git a/muk_web_preview_msoffice/tests/test_msoffice_parse.py b/muk_web_preview_msoffice/tests/test_msoffice_parse.py
index 3b60653..650e20a 100644
--- a/muk_web_preview_msoffice/tests/test_msoffice_parse.py
+++ b/muk_web_preview_msoffice/tests/test_msoffice_parse.py
@@ -19,11 +19,7 @@
import os
import logging
-
-from urllib.parse import urlunparse
-from urllib.parse import urlparse
-from urllib.parse import parse_qsl
-from urllib.parse import urlencode
+import unittest
from odoo.tests import common
@@ -42,13 +38,9 @@ class MSOfficeParseTestCase(common.HttpCase):
def tearDown(self):
super(MSOfficeParseTestCase, self).tearDown()
+ @unittest.skip("HTTP")
def test_parse_msoffice(self):
self.authenticate('admin', 'admin')
url = "/web/preview/msoffice"
params = {'url': "/web/content?id={}".format(self.sample_msoffice_attachment.id)}
- url_parts = list(urlparse(url))
- query = dict(parse_qsl(url_parts[4]))
- query.update(params)
- url_parts[4] = urlencode(query)
- url = urlunparse(url_parts)
- self.assertTrue(self.url_open(url))
\ No newline at end of file
+ self.assertTrue(self.url_open(url, data=params))
\ No newline at end of file