From 8072858555c1a214af53d539aca4ea07cb7e4096 Mon Sep 17 00:00:00 2001 From: Antonin Bourguignon Date: Tue, 5 Jun 2012 14:41:18 +0200 Subject: [PATCH] [IMP] split and rename the 'portal_issue' bridge module into 'portal_project' and 'portal_project_issue' this is more consistent with the way we usually name bridge modules bzr revid: abo@openerp.com-20120605124118-q8a9fvs4bio0zn4n --- .../__init__.py | 0 addons/portal_project/__openerp__.py | 43 +++++++++++++++++++ addons/portal_project/portal_project_view.xml | 9 ++++ .../security/ir.model.access.csv | 1 - .../security/portal_security.xml | 13 ++++++ addons/portal_project_issue/__init__.py | 21 +++++++++ .../__openerp__.py | 2 +- .../portal_project_issue_view.xml} | 2 - .../security/ir.model.access.csv | 2 + .../security/portal_security.xml | 7 --- 10 files changed, 89 insertions(+), 11 deletions(-) rename addons/{portal_issue => portal_project}/__init__.py (100%) create mode 100644 addons/portal_project/__openerp__.py create mode 100644 addons/portal_project/portal_project_view.xml rename addons/{portal_issue => portal_project}/security/ir.model.access.csv (78%) create mode 100644 addons/portal_project/security/portal_security.xml create mode 100644 addons/portal_project_issue/__init__.py rename addons/{portal_issue => portal_project_issue}/__openerp__.py (97%) rename addons/{portal_issue/portal_issue_view.xml => portal_project_issue/portal_project_issue_view.xml} (62%) create mode 100644 addons/portal_project_issue/security/ir.model.access.csv rename addons/{portal_issue => portal_project_issue}/security/portal_security.xml (56%) diff --git a/addons/portal_issue/__init__.py b/addons/portal_project/__init__.py similarity index 100% rename from addons/portal_issue/__init__.py rename to addons/portal_project/__init__.py diff --git a/addons/portal_project/__openerp__.py b/addons/portal_project/__openerp__.py new file mode 100644 index 00000000000..f90c0cf9df2 --- /dev/null +++ b/addons/portal_project/__openerp__.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 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 . +# +############################################################################## + + +{ + 'name': 'Portal Issue', + 'version': '0.1', + 'category': 'Tools', + 'complexity': "easy", + 'description': """ +This module adds project menu and features (tasks) to your portal if project +and portal are installed. + """, + 'author': 'OpenERP SA', + 'depends': ['project','portal'], + 'data': [ + 'security/portal_security.xml', + 'security/ir.model.access.csv', + 'portal_project_view.xml', + ], + 'installable': True, + 'auto_install':True, + 'category':'Hidden', +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/portal_project/portal_project_view.xml b/addons/portal_project/portal_project_view.xml new file mode 100644 index 00000000000..51f6683382a --- /dev/null +++ b/addons/portal_project/portal_project_view.xml @@ -0,0 +1,9 @@ + + + + + + + + diff --git a/addons/portal_issue/security/ir.model.access.csv b/addons/portal_project/security/ir.model.access.csv similarity index 78% rename from addons/portal_issue/security/ir.model.access.csv rename to addons/portal_project/security/ir.model.access.csv index 4f0cd119753..212230634c3 100644 --- a/addons/portal_issue/security/ir.model.access.csv +++ b/addons/portal_project/security/ir.model.access.csv @@ -1,5 +1,4 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_issues,project_issue,project_issue.model_project_issue,portal.group_portal_member,1,0,1,0 access_task,tasks,project.model_project_task,portal.group_portal_member,1,0,0,0 access_task_type,task_type,project.model_project_task_type,portal.group_portal_member,1,0,0,0 access_task_work,task_work,project.model_project_task_work,portal.group_portal_member,1,0,0,0 diff --git a/addons/portal_project/security/portal_security.xml b/addons/portal_project/security/portal_security.xml new file mode 100644 index 00000000000..f9983861c68 --- /dev/null +++ b/addons/portal_project/security/portal_security.xml @@ -0,0 +1,13 @@ + + + + + + Personal Task + + [('partner_id','child_of',user.partner_id.id)] + + + + + diff --git a/addons/portal_project_issue/__init__.py b/addons/portal_project_issue/__init__.py new file mode 100644 index 00000000000..26c654db9dd --- /dev/null +++ b/addons/portal_project_issue/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 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 . +# +############################################################################## + diff --git a/addons/portal_issue/__openerp__.py b/addons/portal_project_issue/__openerp__.py similarity index 97% rename from addons/portal_issue/__openerp__.py rename to addons/portal_project_issue/__openerp__.py index 8227d5cbfbb..d1be2ec604d 100644 --- a/addons/portal_issue/__openerp__.py +++ b/addons/portal_project_issue/__openerp__.py @@ -34,7 +34,7 @@ portal are installed. 'data': [ 'security/portal_security.xml', 'security/ir.model.access.csv', - 'portal_issue_view.xml', + 'portal_project_issue_view.xml', ], 'installable': True, 'auto_install':True, diff --git a/addons/portal_issue/portal_issue_view.xml b/addons/portal_project_issue/portal_project_issue_view.xml similarity index 62% rename from addons/portal_issue/portal_issue_view.xml rename to addons/portal_project_issue/portal_project_issue_view.xml index dcc79ae78d9..73a28f9f0bb 100644 --- a/addons/portal_issue/portal_issue_view.xml +++ b/addons/portal_project_issue/portal_project_issue_view.xml @@ -4,8 +4,6 @@ - diff --git a/addons/portal_project_issue/security/ir.model.access.csv b/addons/portal_project_issue/security/ir.model.access.csv new file mode 100644 index 00000000000..8ddfff0f398 --- /dev/null +++ b/addons/portal_project_issue/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_issues,project_issue,project_issue.model_project_issue,portal.group_portal_member,1,0,1,0 diff --git a/addons/portal_issue/security/portal_security.xml b/addons/portal_project_issue/security/portal_security.xml similarity index 56% rename from addons/portal_issue/security/portal_security.xml rename to addons/portal_project_issue/security/portal_security.xml index 8a7528c8138..1bae1ef8e8c 100644 --- a/addons/portal_issue/security/portal_security.xml +++ b/addons/portal_project_issue/security/portal_security.xml @@ -9,12 +9,5 @@ - - Personal Task - - [('partner_id','child_of',user.partner_id.id)] - - -