[IMP] add a few comments
bzr revid: abo@openerp.com-20120704090034-bjhq0py72ogesl6m
This commit is contained in:
parent
3a11c37e5e
commit
528c39acd8
|
@ -2,5 +2,7 @@
|
|||
<openerp>
|
||||
<data noupdate="1">
|
||||
|
||||
<!-- Employees with a visibility == 'portal' can't be seen by anonymous -->
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue