From 937bc0ba4a3306572b111c322be7a383422d1138 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Thu, 7 Mar 2013 11:50:31 +0100 Subject: [PATCH] [FIX] portal_project_long_term: access right and rules bzr revid: chm@openerp.com-20130307105031-d9t7vh642z6bxul7 --- addons/portal_project_long_term/__init__.py | 20 +++++++++ .../portal_project_long_term/__openerp__.py | 42 +++++++++++++++++++ .../security/ir.model.access.csv | 2 + .../security/portal_security.xml | 17 ++++++++ 4 files changed, 81 insertions(+) create mode 100644 addons/portal_project_long_term/__init__.py create mode 100644 addons/portal_project_long_term/__openerp__.py create mode 100644 addons/portal_project_long_term/security/ir.model.access.csv create mode 100644 addons/portal_project_long_term/security/portal_security.xml diff --git a/addons/portal_project_long_term/__init__.py b/addons/portal_project_long_term/__init__.py new file mode 100644 index 00000000000..c8d82ed19bd --- /dev/null +++ b/addons/portal_project_long_term/__init__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2010-Today OpenERP S.A. (). +# +# 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_project_long_term/__openerp__.py b/addons/portal_project_long_term/__openerp__.py new file mode 100644 index 00000000000..373ae8535dc --- /dev/null +++ b/addons/portal_project_long_term/__openerp__.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2010-Today OpenERP S.A. (). +# +# 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 issue menu and features to your portal if project_long_term and portal are installed. +====================================================================================================== + """, + 'author': 'OpenERP SA', + 'depends': ['project_long_term', 'portal'], + 'data': [ + 'security/portal_security.xml', + 'security/ir.model.access.csv', + ], + 'installable': True, + 'auto_install': True, + 'category': 'Hidden', +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/portal_project_long_term/security/ir.model.access.csv b/addons/portal_project_long_term/security/ir.model.access.csv new file mode 100644 index 00000000000..738c264a71c --- /dev/null +++ b/addons/portal_project_long_term/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_phase,project_long_term.model_project_phase,portal.group_portal,1,0,0,0 diff --git a/addons/portal_project_long_term/security/portal_security.xml b/addons/portal_project_long_term/security/portal_security.xml new file mode 100644 index 00000000000..b46d277e4ee --- /dev/null +++ b/addons/portal_project_long_term/security/portal_security.xml @@ -0,0 +1,17 @@ + + + + + + Portal Personal Long term project + + ['|',('project_id.message_follower_ids','in', [user.partner_id.id]),('task_ids.message_follower_ids','in', [user.partner_id.id])] + + + + + + + + +