[IMP] sync_google_contact: change name of method
bzr revid: sbh@tinyerp.com-20110217113343-dvf53q348e8w6xan
This commit is contained in:
@@ -35,7 +35,7 @@ class google_contact_import(osv.osv_memory):
|
||||
if 'password' in fields:
|
||||
res.update({'password': user_obj.gmail_password})
|
||||
return res
|
||||
def import_contact(self, cr, uid, ids, context=None):
|
||||
def check_login_contact(self, cr, uid, ids, context=None):
|
||||
gd_client = self.check_login(cr, uid, ids, context=context)
|
||||
if not gd_client:
|
||||
raise osv.except_osv(_('Error'), _("Authication fail check the user and password !"))
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<separator string="" colspan="4"/>
|
||||
<group colspan="2" col="2">
|
||||
<button special="cancel" string="Cancel" icon="gtk-cancel"/>
|
||||
<button name="import_contact" string="Import Contacts" type="object" icon="terp-personal+"/>
|
||||
<button name="check_login_contact" string="Login" type="object" icon="terp-personal+"/>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user