diff options
| author | Vijaykumar Baladaniya <vba@tinyerp.com> | 2012-07-09 18:31:13 +0530 |
|---|---|---|
| committer | Vijaykumar Baladaniya <vba@tinyerp.com> | 2012-07-09 18:31:13 +0530 |
| commit | be2e95656aaa113addea2b510fcdcf2f890eaaa4 (patch) | |
| tree | abcb3dd4ef350a1b8ad0eaffdd2b9a1cb91521af /addons/portal_project_issue | |
| parent | b982ea278b33132def3927417b7a854b98b5028a (diff) | |
| parent | 3925f76ce85854e5d4834902a05f57bcfc5ace85 (diff) | |
[MERGE]merged with trunk-survey-layout-tta
bzr revid: vba@tinyerp.com-20120709130113-3lchipgil9oqpglg
Diffstat (limited to 'addons/portal_project_issue')
| -rw-r--r-- | addons/portal_project_issue/__init__.py | 21 | ||||
| -rw-r--r-- | addons/portal_project_issue/__openerp__.py | 43 | ||||
| -rw-r--r-- | addons/portal_project_issue/portal_project_issue_view.xml | 21 | ||||
| -rw-r--r-- | addons/portal_project_issue/security/ir.model.access.csv | 2 | ||||
| -rw-r--r-- | addons/portal_project_issue/security/portal_security.xml | 13 |
5 files changed, 100 insertions, 0 deletions
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 (<http://tiny.be>). +# +# 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 <http://www.gnu.org/licenses/>. +# +############################################################################## + diff --git a/addons/portal_project_issue/__openerp__.py b/addons/portal_project_issue/__openerp__.py new file mode 100644 index 00000000000..d1be2ec604d --- /dev/null +++ b/addons/portal_project_issue/__openerp__.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). +# +# 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 <http://www.gnu.org/licenses/>. +# +############################################################################## + + +{ + 'name': 'Portal Issue', + 'version': '0.1', + 'category': 'Tools', + 'complexity': "easy", + 'description': """ +This module adds issue menu and features to your portal if project_issue and +portal are installed. + """, + 'author': 'OpenERP SA', + 'depends': ['project_issue','portal'], + 'data': [ + 'security/portal_security.xml', + 'security/ir.model.access.csv', + 'portal_project_issue_view.xml', + ], + 'installable': True, + 'auto_install':True, + 'category':'Hidden', +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/portal_project_issue/portal_project_issue_view.xml b/addons/portal_project_issue/portal_project_issue_view.xml new file mode 100644 index 00000000000..fdbf1037c20 --- /dev/null +++ b/addons/portal_project_issue/portal_project_issue_view.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<openerp> + <data> + + <record id="project_issue_categ_act0" model="ir.actions.act_window"> + <field name="name">Issues</field> + <field name="res_model">project.issue</field> + <field name="view_type">form</field> + <field name="view_mode">kanban,tree,calendar</field> + <field name="view_id" eval="False"/> + <field name="domain" eval=""/> + <field name="context">{"search_default_user_id":'', "search_default_draft":'', "search_default_todo":''}</field> + <field name="search_view_id" ref="project_issue.view_project_issue_filter"/> + <field name="help">Issues such as system bugs, customer complaints, and material breakdowns are collected here. You can define the stages assigned when solving the project issue (analysis, development, done). With the mailgateway module, issues can be integrated through an email address (example: support@mycompany.com)</field> + </record> + + <menuitem name="Issues" id="portal_after_sales_issues" parent="portal.portal_projects" + action="project_issue_categ_act0" sequence="10"/> + + </data> +</openerp> 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_project_issue/security/portal_security.xml b/addons/portal_project_issue/security/portal_security.xml new file mode 100644 index 00000000000..1bae1ef8e8c --- /dev/null +++ b/addons/portal_project_issue/security/portal_security.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<openerp> + <data noupdate="1"> + + <record id="portal_issue_rule" model="ir.rule"> + <field name="name">Personal Issues</field> + <field ref="project_issue.model_project_issue" name="model_id"/> + <field name="domain_force">[('partner_id','child_of',user.partner_id.id)]</field> + <field name="groups" eval="[(4, ref('portal.group_portal_member'))]"/> + </record> + + </data> +</openerp> |
