diff --git a/addons/portal_crm/security/portal_crm_security.xml b/addons/portal_crm/security/portal_crm_security.xml index 39f923a895b..2fb26abe7ec 100644 --- a/addons/portal_crm/security/portal_crm_security.xml +++ b/addons/portal_crm/security/portal_crm_security.xml @@ -2,5 +2,7 @@ + + diff --git a/addons/portal_crm/wizard/contact.py b/addons/portal_crm/wizard/contact.py index a1e38fcc988..53920cd4d7e 100644 --- a/addons/portal_crm/wizard/contact.py +++ b/addons/portal_crm/wizard/contact.py @@ -11,6 +11,7 @@ class crm_contact_us(osv.TransientModel): } def _get_employee(self, cr, uid, context=None): + """ Employees flagged as 'private' won't appear on the contact page """ r = self.pool.get('hr.employee').search(cr, uid, [('visibility', '!=', 'private')], context=context) return r