[IMP] base_calendar : Add attendee should shoe child contacts also

bzr revid: jam@tinyerp.com-20120305115212-r4ro1xg6qp6b43i4
This commit is contained in:
Jigar Amin - OpenERP 2012-03-05 17:22:12 +05:30
parent e88e09aff5
commit 44347d6ba9
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ send an Email to Invited Person')
if not partner_id:
return {'value': {'contact_ids': []}}
cr.execute('SELECT id FROM res_partner \
WHERE id=%s', (partner_id,))
WHERE id=%s or parent_id =%s' , (partner_id,partner_id,))
contacts = map(lambda x: x[0], cr.fetchall())
return {'value': {'contact_ids': contacts}}