From 528c39acd8cb5deb98cce6a5250eabd3bcf23ac0 Mon Sep 17 00:00:00 2001 From: Antonin Bourguignon Date: Wed, 4 Jul 2012 11:00:34 +0200 Subject: [PATCH] [IMP] add a few comments bzr revid: abo@openerp.com-20120704090034-bjhq0py72ogesl6m --- addons/portal_crm/security/portal_crm_security.xml | 2 ++ addons/portal_crm/wizard/contact.py | 1 + 2 files changed, 3 insertions(+) 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