From 4764061016e95cb7aa553b725ab73eb8ef99234e Mon Sep 17 00:00:00 2001 From: "Nimesh (Open ERP)" Date: Tue, 10 Apr 2012 16:42:42 +0530 Subject: [PATCH] [change] give the access rights for lead and contact. bzr revid: nco@tinyerp.com-20120410111242-wp1dumxw29evzkz6 --- addons/portal_customer_lead/__openerp__.py | 4 +- .../portal_customer_lead_data.xml | 29 ++++++++++--- .../portal_customer_lead_view.xml | 42 ++++++++----------- 3 files changed, 42 insertions(+), 33 deletions(-) diff --git a/addons/portal_customer_lead/__openerp__.py b/addons/portal_customer_lead/__openerp__.py index 160264278a5..f0d4d043edc 100644 --- a/addons/portal_customer_lead/__openerp__.py +++ b/addons/portal_customer_lead/__openerp__.py @@ -34,9 +34,9 @@ A portal_customer_lead will show the own leads of the customer. 'website': 'http://www.openerp.com', 'update_xml': [ - 'portal_customer_lead_data.xml', + 'portal_customer_lead_view.xml', - + 'portal_customer_lead_data.xml', # 'security/ir.model.access.csv', ], 'installable': True, diff --git a/addons/portal_customer_lead/portal_customer_lead_data.xml b/addons/portal_customer_lead/portal_customer_lead_data.xml index 0b892c6da7c..ff6ccaa8de8 100644 --- a/addons/portal_customer_lead/portal_customer_lead_data.xml +++ b/addons/portal_customer_lead/portal_customer_lead_data.xml @@ -1,9 +1,9 @@ - + - customer lead + Customer Lead True True @@ -11,17 +11,34 @@ - customer lead + 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_view.xml index eac0ba872c9..29607054ef3 100644 --- a/addons/portal_customer_lead/portal_customer_lead_view.xml +++ b/addons/portal_customer_lead/portal_customer_lead_view.xml @@ -3,12 +3,9 @@ - - - - - + + @@ -16,32 +13,27 @@ - - - + groups="base.group_sale_salesman"/--> + + + - - - - + + Feeds + 0 + + + + +