[FIX] knowledge: Several things

* Copyright and various stuff
* Contributors
* External ID not found in the system: base.group_document_user
This commit is contained in:
Maxime Chambreuil 2017-01-05 12:53:38 -06:00 committed by Khôi (Kiên Kim)
parent a94f7e07e8
commit 4e36cf5a57
10 changed files with 67 additions and 33 deletions

View File

@ -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 <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
@ -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
----------

View File

@ -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/>.
#
##############################################################################
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import models

View File

@ -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/",
@ -16,6 +16,6 @@
"views/res_config.xml",
],
"demo": ["demo/knowledge.xml"],
'installable': True,
"installable": True,
"auto_install": False,
}

View File

@ -2,7 +2,7 @@
<odoo noupdate="1">
<record id="base.user_demo" model="res.users">
<field name="groups_id" eval="[(4,ref('base.group_document_user'))]"/>
<field name="groups_id" eval="[(4,ref('knowledge.group_document_user'))]"/>
</record>
</odoo>

View File

@ -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

View File

@ -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

View File

@ -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):
@ -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.'
)

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="base.group_document_user" model="res.groups">
<record id="group_document_user" model="res.groups">
<field name="name">Knowledge user</field>
<field name="category_id" ref="module_category_knowledge"/>
<field name="users" eval="[(4, ref('base.user_root'))]"/>

View File

@ -30,7 +30,7 @@
<menuitem
id="menu_document_root"
name="Knowledge"
groups="base.group_system,base.group_document_user"
groups="base.group_system,knowledge.group_document_user"
sequence="116"/>
<menuitem

View File

@ -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>