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..44156afbc06 --- /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 Project Long Term', + 'version': '1.0', + 'category': 'Tools', + 'complexity': 'easy', + 'description': """ +This module adds necessary security rules and access rights for project long term and portal. +============================================================================================= + """, + '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])] + + + + + + + + +