mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-27 02:48:41 -06:00
Access rules and create group "document manager" in knowledge module
This commit is contained in:
parent
9f8ca75e57
commit
d67f833d23
@ -42,6 +42,11 @@ 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**>`_.
|
||||
|
||||
TODO
|
||||
====
|
||||
|
||||
* Show document type in the attachment list in the sidebar, and maybe order and group by those?
|
||||
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
@ -13,6 +13,7 @@
|
||||
'views/document_type.xml',
|
||||
'views/attachment.xml',
|
||||
'templates/web.xml',
|
||||
'security/ir.model.access.csv',
|
||||
],
|
||||
"installable": True,
|
||||
"auto_install": False,
|
||||
|
3
document_type/security/ir.model.access.csv
Normal file
3
document_type/security/ir.model.access.csv
Normal file
@ -0,0 +1,3 @@
|
||||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
document_type_all,document.type.all,model_document_type,,1,0,0,0
|
||||
document_type_manager,document.type.document.manager,model_document_type,knowledge.group_document_manager,1,1,1,1
|
|
@ -3,7 +3,7 @@
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
{
|
||||
"name": "Knowledge Management System",
|
||||
"version": "10.0.1.0.0",
|
||||
"version": "10.0.1.1.0",
|
||||
"author": "OpenERP SA, MONK Software, Odoo Community Association (OCA)",
|
||||
"category": "Knowledge",
|
||||
"license": "AGPL-3",
|
||||
|
@ -7,4 +7,12 @@
|
||||
<field name="users" eval="[(4, ref('base.user_root'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="group_document_manager" model="res.groups">
|
||||
<field name="name">Knowledge manager</field>
|
||||
<field name="comment">Knowledge managers can define document types</field>
|
||||
<field name="category_id" ref="module_category_knowledge"/>
|
||||
<field name="implied_ids" eval="[(4, ref('base.group_document_user'))]"/>
|
||||
<field name="users" eval="[(4, ref('base.user_root'))]"/>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
@ -13,6 +13,7 @@
|
||||
id="menu_document_configuration"
|
||||
name="Configuration"
|
||||
parent="menu_document"
|
||||
groups="group_document_manager"
|
||||
sequence="50"/>
|
||||
|
||||
</odoo>
|
||||
|
Loading…
Reference in New Issue
Block a user