diff --git a/muk_web_preview/__init__.py b/muk_web_preview/__init__.py index 21f21ae..3a632f4 100644 --- a/muk_web_preview/__init__.py +++ b/muk_web_preview/__init__.py @@ -16,3 +16,5 @@ # along with this program. If not, see . # ################################################################################### + +from . import models \ No newline at end of file diff --git a/muk_web_preview/__manifest__.py b/muk_web_preview/__manifest__.py index 4dd63a6..115a9fc 100644 --- a/muk_web_preview/__manifest__.py +++ b/muk_web_preview/__manifest__.py @@ -20,7 +20,7 @@ { "name": "MuK Preview", "summary": """File Preview Dialog""", - "version": "11.0.2.0.0", + "version": "11.0.2.1.0", "category": "Extra Tools", "license": "AGPL-3", "website": "http://www.mukit.at", @@ -30,12 +30,13 @@ "Mathias Markl ", ], "depends": [ - "base", "web", + "base_setup", "muk_web_utils", ], "data": [ "template/assets.xml", + "views/res_config_settings_view.xml", ], "demo": [ "demo/preview_demo.xml", diff --git a/muk_web_preview/doc/changelog.rst b/muk_web_preview/doc/changelog.rst index 91e73ad..ca26fc3 100644 --- a/muk_web_preview/doc/changelog.rst +++ b/muk_web_preview/doc/changelog.rst @@ -1,3 +1,8 @@ +`2.1.0` +------- + +- Added Settings to install Extensions + `2.0.0` ------- diff --git a/muk_web_preview/models/__init__.py b/muk_web_preview/models/__init__.py new file mode 100644 index 0000000..6c0ccad --- /dev/null +++ b/muk_web_preview/models/__init__.py @@ -0,0 +1,20 @@ +################################################################################### +# +# Copyright (C) 2017 MuK IT GmbH +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +from . import res_config_settings diff --git a/muk_web_preview/models/res_config_settings.py b/muk_web_preview/models/res_config_settings.py new file mode 100644 index 0000000..8fe94e3 --- /dev/null +++ b/muk_web_preview/models/res_config_settings.py @@ -0,0 +1,64 @@ +################################################################################### +# +# Copyright (C) 2017 MuK IT GmbH +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +from odoo import api, fields, models + +class ResConfigSettings(models.TransientModel): + + _inherit = 'res.config.settings' + + module_muk_web_preview_audio = fields.Boolean( + string="Preview Audio", + help="Extendes the Preview Dialog to support audio.") + + module_muk_web_preview_csv = fields.Boolean( + string="Preview CSV", + help="Extendes the Preview Dialog to support csv files.") + + module_muk_web_preview_image = fields.Boolean( + string="Preview Image", + help="Extendes the Preview Dialog to support image files.") + + module_muk_web_preview_mail = fields.Boolean( + string="Preview Mail", + help="Extendes the Preview Dialog to support mails.") + + module_muk_web_preview_markdown = fields.Boolean( + string="Preview Markdown", + help="Extendes the Preview Dialog to support markdown files.") + + module_muk_web_preview_msoffice = fields.Boolean( + string="Preview MS Office", + help="Extendes the Preview Dialog to support office files.") + + module_muk_web_preview_rst = fields.Boolean( + string="Preview ReStructuredText", + help="Extendes the Preview Dialog to support reStructuredText.") + + module_muk_web_preview_text = fields.Boolean( + string="Preview Text", + help="Extendes the Preview Dialog to support text files.") + + module_muk_web_preview_vector = fields.Boolean( + string="Preview Vector", + help="Extendes the Preview Dialog to support vector files.") + + module_muk_web_preview_video = fields.Boolean( + string="Preview Video", + help="Extendes the Preview Dialog to support video files.") \ No newline at end of file diff --git a/muk_web_preview/static/description/index.html b/muk_web_preview/static/description/index.html index 7e520f4..783aec1 100644 --- a/muk_web_preview/static/description/index.html +++ b/muk_web_preview/static/description/index.html @@ -10,7 +10,7 @@ -
+

Overview

@@ -22,11 +22,9 @@
- -
-

PDF & Open Document Preview

+

PDF & Open Document Preview

A preview for Open Documents and PDFs is already included in the MuK Preview module. The following diff --git a/muk_web_preview/views/res_config_settings_view.xml b/muk_web_preview/views/res_config_settings_view.xml new file mode 100644 index 0000000..d6c33ca --- /dev/null +++ b/muk_web_preview/views/res_config_settings_view.xml @@ -0,0 +1,145 @@ + + + + + + + + res.config.settings.view.form + res.config.settings + + +

+

Web Previews

+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ + + + \ No newline at end of file