[REF] sync_google_contact: Removed 'System Group' from group title.

bzr revid: uco@tinyerp.com-20110324110228-cwwsp6d1bxk5x3e4
This commit is contained in:
Ujjvala Collins (OpenERP)
2011-03-24 16:32:28 +05:30
parent 016f93a05e
commit 3cedb5c181
@@ -71,7 +71,10 @@ class synchronize_google_contact(osv.osv_memory):
if gd_client:
groups = gd_client.GetGroups(q=query)
for grp in groups.entry:
res.append((grp.id.text, grp.title.text))
title = grp.title.text
if 'System Group' in grp.title.text:
title = grp.title.text.split(': ')[1]
res.append((grp.id.text, title))
res.append(('all','All Groups'))
return res