diff --git a/addons/portal_customer_lead/__openerp__.py b/addons/portal_customer_lead/__openerp__.py index f0d4d043edc..1221da468e5 100644 --- a/addons/portal_customer_lead/__openerp__.py +++ b/addons/portal_customer_lead/__openerp__.py @@ -34,10 +34,9 @@ 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', + 'security/portal_customer_lead_security.xml', + 'security/ir.model.access.csv', + 'portal_customer_lead_menu.xml', ], 'installable': True, } diff --git a/addons/portal_customer_lead/portal_customer_lead_data.xml b/addons/portal_customer_lead/portal_customer_lead_data.xml deleted file mode 100644 index ff6ccaa8de8..00000000000 --- a/addons/portal_customer_lead/portal_customer_lead_data.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - Customer Lead - - True - True - True - - - - Customer Lead - - - [('partner_id.email','=',user.login)] - - - - - - Customer Contact - - True - True - True - - - - Customer Contact - - - [('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_menu.xml similarity index 100% rename from addons/portal_customer_lead/portal_customer_lead_view.xml rename to addons/portal_customer_lead/portal_customer_lead_menu.xml diff --git a/addons/portal_customer_lead/security/ir.model.access.csv b/addons/portal_customer_lead/security/ir.model.access.csv index 7f12625c931..de8873ddb0f 100644 --- a/addons/portal_customer_lead/security/ir.model.access.csv +++ b/addons/portal_customer_lead/security/ir.model.access.csv @@ -1,3 +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 +access_portal_crm_lead,portal.crm.lead,crm.model_crm_lead,group_portal_customer_lead,1,1,1,0 diff --git a/addons/portal_customer_lead/security/portal_customer_lead_security.xml b/addons/portal_customer_lead/security/portal_customer_lead_security.xml new file mode 100644 index 00000000000..1e8874930f1 --- /dev/null +++ b/addons/portal_customer_lead/security/portal_customer_lead_security.xml @@ -0,0 +1,32 @@ + + + + + + Customer Contact + + + [('email','=',user.login)] + + + + Personal Lead + + [('partner_id.email','=',user.login)] + + + + + Portal Lead Group + + + + + + + Customer Lead Portal + + + + +