Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions knowledge/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 <https://github.com/OCA/
knowledge/issues/new?body=module:%20
knowledge%0Aversion:%20
9.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
10.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.


Credits
Expand All @@ -56,7 +56,8 @@ Contributors
* Odoo SA <info@odoo.com>
* Savoir-faire Linux <support@savoirfairelinux.com>
* Gervais Naoussi <gervaisnaoussi@gmail.com>
* Leonardo Donelli @ MONK Software (leonardo.donelli@monksoftware.it)
* Leonardo Donelli <leonardo.donelli@monksoftware.it>
* Maxime Chambreuil <mchambreuil@ursainfosystems.com>

Maintainer
----------
Expand Down
22 changes: 2 additions & 20 deletions knowledge/__init__.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
"""Import of model's module."""
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# 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 <http://www.gnu.org/licenses/>.
#
##############################################################################
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
8 changes: 4 additions & 4 deletions knowledge/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
# Copyright 2016 MONK Software
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
# 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/",
Expand All @@ -16,6 +16,6 @@
"views/res_config.xml",
],
"demo": ["demo/knowledge.xml"],
'installable': True,
"installable": True,
"auto_install": False,
}
2 changes: 1 addition & 1 deletion knowledge/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2016 MONK Software
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import ir_attachment
Expand Down
4 changes: 4 additions & 0 deletions knowledge/models/ir_attachment.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


Expand Down
29 changes: 27 additions & 2 deletions knowledge/models/res_config.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
# Copyright 2016 MONK Software
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
# 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):
Expand All @@ -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.'
)
22 changes: 22 additions & 0 deletions knowledge/views/res_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,28 @@
<field name="module_document" class="oe_inline"/>
<label for="module_document"/>
</div>
<div>
<field name="module_document_page" class="oe_inline"/>
<label for="module_document_page"/>
</div>
<div>
<field name="module_document_page_approval" class="oe_inline"/>
<label for="module_document_page_approval"/>
</div>
</div>
</group>
<separator string="Connect with an external DMS"/>
<group>
<label for="id" string="Using CMIS"/>
<div>
<div>
<field name="module_cmis_read" class="oe_inline"/>
<label for="module_cmis_read"/>
</div>
<div>
<field name="module_cmis_write" class="oe_inline"/>
<label for="module_cmis_write"/>
</div>
</div>
</group>
</form>
Expand Down