mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-26 18:38:41 -06:00
[MIG] knowledge: Migration to 11.0
This commit is contained in:
parent
409b195126
commit
2535cdec0a
3
.gitignore
vendored
3
.gitignore
vendored
@ -48,3 +48,6 @@ coverage.xml
|
|||||||
# Backup files
|
# Backup files
|
||||||
*~
|
*~
|
||||||
*.swp
|
*.swp
|
||||||
|
|
||||||
|
# Mac TMP Files
|
||||||
|
.DS_Store
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
{
|
{
|
||||||
"name": "Knowledge Management System",
|
"name": "Knowledge Management System",
|
||||||
"version": "10.0.1.0.0",
|
"version": "11.0.1.0.0",
|
||||||
"author": "OpenERP SA, MONK Software, Odoo Community Association (OCA)",
|
"author": "OpenERP SA, MONK Software, Odoo Community Association (OCA)",
|
||||||
"category": "Knowledge",
|
"category": "Knowledge",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
---Fields in module 'knowledge'---
|
|
||||||
---XML records in module 'knowledge'---
|
|
||||||
NEW ir.actions.act_window: knowledge.knowledge_action_documents
|
|
||||||
DEL ir.model.access: knowledge.access_ir_attachment_partner_manager
|
|
||||||
DEL ir.model.access: knowledge.access_ir_attachment_sale_manager
|
|
||||||
NEW ir.module.category: knowledge.module_category_knowledge
|
|
||||||
DEL ir.module.category: knowledge.module_category_knowledge_management
|
|
||||||
NEW ir.ui.menu: knowledge.menu_document_root
|
|
||||||
NEW ir.ui.menu: knowledge.menu_document_section
|
|
||||||
DEL ir.ui.menu: knowledge.menu_document2
|
|
||||||
NEW ir.ui.view: knowledge.ir_attachment_view_user_documents
|
|
||||||
NEW res.groups: knowledge.group_document_user
|
|
||||||
DEL res.groups: base.group_document_user
|
|
@ -1,16 +0,0 @@
|
|||||||
---Fields in module 'knowledge'---
|
|
||||||
---XML records in module 'knowledge'---
|
|
||||||
NEW ir.actions.act_window: knowledge.knowledge_action_documents
|
|
||||||
DEL ir.model.access: knowledge.access_ir_attachment_partner_manager
|
|
||||||
DEL ir.model.access: knowledge.access_ir_attachment_sale_manager
|
|
||||||
NEW ir.module.category: knowledge.module_category_knowledge
|
|
||||||
DEL ir.module.category: knowledge.module_category_knowledge_management
|
|
||||||
NEW ir.ui.menu: knowledge.menu_document_root
|
|
||||||
NEW ir.ui.menu: knowledge.menu_document_section
|
|
||||||
DEL ir.ui.menu: knowledge.menu_document2
|
|
||||||
NEW ir.ui.view: knowledge.ir_attachment_view_user_documents
|
|
||||||
# Nothing to do
|
|
||||||
NEW res.groups: knowledge.group_document_user
|
|
||||||
# Done: Rename XML-IDs
|
|
||||||
DEL res.groups: base.group_document_user
|
|
||||||
# Nothing to do: noupdate=0 records
|
|
@ -1,14 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Copyright 2017 Eficent <http://www.eficent.com>
|
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
||||||
|
|
||||||
_xmlid_renames = [
|
|
||||||
('base.group_document_user', 'knowledge.group_document_user'),
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
def migrate(cr, version):
|
|
||||||
for (old, new) in _xmlid_renames:
|
|
||||||
query = ("UPDATE ir_model_data SET module = %s, name = %s "
|
|
||||||
"WHERE module = %s and name = %s")
|
|
||||||
cr.execute(query, tuple(new.split('.') + old.split('.')))
|
|
@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user