From 4e36cf5a57743e89fabdb71451498d733a2167fd Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Thu, 5 Jan 2017 12:53:38 -0600 Subject: [PATCH] [FIX] knowledge: Several things * Copyright and various stuff * Contributors * External ID not found in the system: base.group_document_user --- document_knowledge/README.rst | 7 +++-- document_knowledge/__init__.py | 22 ++------------ document_knowledge/__manifest__.py | 8 ++--- document_knowledge/demo/knowledge.xml | 2 +- document_knowledge/models/__init__.py | 2 +- document_knowledge/models/ir_attachment.py | 4 +++ document_knowledge/models/res_config.py | 29 +++++++++++++++++-- .../security/knowledge_security.xml | 2 +- document_knowledge/views/knowledge.xml | 2 +- document_knowledge/views/res_config.xml | 22 ++++++++++++++ 10 files changed, 67 insertions(+), 33 deletions(-) diff --git a/document_knowledge/README.rst b/document_knowledge/README.rst index 94bd4dcf..bf93ac79 100644 --- a/document_knowledge/README.rst +++ b/document_knowledge/README.rst @@ -27,7 +27,7 @@ To use this module, you need to: .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/repo/118/9.0 + :target: https://runbot.odoo-community.org/runbot/repo/118/10.0 Known issues / Roadmap @@ -44,7 +44,7 @@ In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback `here `_. +10.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. Credits @@ -56,7 +56,8 @@ Contributors * Odoo SA * Savoir-faire Linux * Gervais Naoussi -* Leonardo Donelli @ MONK Software (leonardo.donelli@monksoftware.it) +* Leonardo Donelli +* Maxime Chambreuil Maintainer ---------- diff --git a/document_knowledge/__init__.py b/document_knowledge/__init__.py index 282d496e..769d6e28 100644 --- a/document_knowledge/__init__.py +++ b/document_knowledge/__init__.py @@ -1,23 +1,5 @@ -"""Import of model's module.""" # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2009 Tiny SPRL (). -# -# 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 . -# -############################################################################## +# Copyright (C) 2004-2009 Tiny SPRL (). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import models diff --git a/document_knowledge/__manifest__.py b/document_knowledge/__manifest__.py index 0033ea77..b2fbc36f 100644 --- a/document_knowledge/__manifest__.py +++ b/document_knowledge/__manifest__.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- -# Copyright 2016 MONK Software +# Copyright (C) 2004-2009 Tiny SPRL (). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Knowledge Management System", - "version": "10.0.1.1.0", - "author": "MONK Software, Odoo Community Association (OCA)", + "version": "10.0.1.0.0", + "author": "OpenERP SA, MONK Software, Odoo Community Association (OCA)", "category": "Knowledge", "license": "AGPL-3", "website": "https://odoo-community.org/", @@ -16,6 +16,6 @@ "views/res_config.xml", ], "demo": ["demo/knowledge.xml"], - 'installable': True, + "installable": True, "auto_install": False, } diff --git a/document_knowledge/demo/knowledge.xml b/document_knowledge/demo/knowledge.xml index 85dc7508..4c646a22 100644 --- a/document_knowledge/demo/knowledge.xml +++ b/document_knowledge/demo/knowledge.xml @@ -2,7 +2,7 @@ - + diff --git a/document_knowledge/models/__init__.py b/document_knowledge/models/__init__.py index c94d5097..244a5770 100644 --- a/document_knowledge/models/__init__.py +++ b/document_knowledge/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2016 MONK Software +# Copyright (C) 2004-2009 Tiny SPRL (). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import ir_attachment diff --git a/document_knowledge/models/ir_attachment.py b/document_knowledge/models/ir_attachment.py index 75d9ab02..481938c6 100644 --- a/document_knowledge/models/ir_attachment.py +++ b/document_knowledge/models/ir_attachment.py @@ -1,3 +1,7 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2004-2009 Tiny SPRL (). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + from odoo import fields, models diff --git a/document_knowledge/models/res_config.py b/document_knowledge/models/res_config.py index 194dda02..44cf0de8 100644 --- a/document_knowledge/models/res_config.py +++ b/document_knowledge/models/res_config.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- -# Copyright 2016 MONK Software +# Copyright (C) 2004-2009 Tiny SPRL (). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo import models, fields +from odoo import fields, models class KnowledgeConfigSettings(models.TransientModel): @@ -15,3 +15,28 @@ class KnowledgeConfigSettings(models.TransientModel): help='Document indexation, full text search of attachements.\n' '- This installs the module document.' ) + + module_document_page = fields.Boolean( + 'Manage document pages (Wiki)', + help='Provide document page and category as a wiki.\n' + '- This installs the module document_page.' + ) + + module_document_page_approval = fields.Boolean( + 'Manage documents approval', + help='Add workflow on documents per category.\n' + '- This installs the module document_page_approval.' + ) + + module_cmis_read = fields.Boolean( + 'Attach files from an external DMS into Odoo', + help='Connect Odoo with a CMIS compatible server to attach files\n' + 'to an Odoo record.\n' + '- This installs the module cmis_read.' + ) + + module_cmis_write = fields.Boolean( + 'Store attachments in an external DMS instead of the Odoo Filestore', + help='Connect Odoo with a CMIS compatible server to store files.\n' + '- This installs the module cmis_write.' + ) diff --git a/document_knowledge/security/knowledge_security.xml b/document_knowledge/security/knowledge_security.xml index 467d1b7d..816b6b57 100644 --- a/document_knowledge/security/knowledge_security.xml +++ b/document_knowledge/security/knowledge_security.xml @@ -1,7 +1,7 @@ - + Knowledge user diff --git a/document_knowledge/views/knowledge.xml b/document_knowledge/views/knowledge.xml index 181ab7eb..7f51af55 100644 --- a/document_knowledge/views/knowledge.xml +++ b/document_knowledge/views/knowledge.xml @@ -30,7 +30,7 @@