[IMP] add a few comments

bzr revid: abo@openerp.com-20120704090034-bjhq0py72ogesl6m
This commit is contained in:
Antonin Bourguignon 2012-07-04 11:00:34 +02:00
parent 3a11c37e5e
commit 528c39acd8
2 changed files with 3 additions and 0 deletions

View File

@ -2,5 +2,7 @@
<openerp>
<data noupdate="1">
<!-- Employees with a visibility == 'portal' can't be seen by anonymous -->
</data>
</openerp>

View File

@ -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