diff --git a/addons/portal_customer_lead/__init__.py b/addons/portal_customer_lead/__init__.py new file mode 100644 index 00000000000..cb65ea0b3dc --- /dev/null +++ b/addons/portal_customer_lead/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2011 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 . +# +############################################################################## + + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/portal_customer_lead/__openerp__.py b/addons/portal_customer_lead/__openerp__.py new file mode 100644 index 00000000000..93878e3e2cd --- /dev/null +++ b/addons/portal_customer_lead/__openerp__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2011 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", + 'version' : "1.0", + 'depends' : ["portal", "crm"], + 'author' : "OpenERP SA", + 'category': 'Portal', + 'description': """ +This module defines 'portals' to customize the access to your OpenERP database +for external users. + +A portal_customer_lead will show the own leads of the customer. + """, + 'website': 'http://www.openerp.com', + + 'update_xml': [ + 'portal_customer_lead_view.xml', + 'portal_customer_lead_data.xml', +# 'security/ir.model.access.csv', + ], + 'installable': True, +} + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/portal_customer_lead/portal_customer_lead_data.xml b/addons/portal_customer_lead/portal_customer_lead_data.xml new file mode 100644 index 00000000000..e1ff2900732 --- /dev/null +++ b/addons/portal_customer_lead/portal_customer_lead_data.xml @@ -0,0 +1,28 @@ + + + + + + customer lead + + True + True + True + + + + customer lead + + + [('partner_id.email','=',user.login)] + + + + portal customer lead + + + + + + + diff --git a/addons/portal_customer_lead/portal_customer_lead_view.xml b/addons/portal_customer_lead/portal_customer_lead_view.xml new file mode 100644 index 00000000000..d2a0e036527 --- /dev/null +++ b/addons/portal_customer_lead/portal_customer_lead_view.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/addons/portal_customer_lead/security/ir.model.access.csv b/addons/portal_customer_lead/security/ir.model.access.csv new file mode 100644 index 00000000000..7f12625c931 --- /dev/null +++ b/addons/portal_customer_lead/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_crm_lead_portal,crm.lead,crm.model_crm_lead,portal_customer.group_sale_salesman,1,1,1,0 +