Remove the Login wizard from the configuration

bzr revid: dbr@tinyerp.com-20110527131055-jxwecr0slmxybib0
This commit is contained in:
DBR (OpenERP)
2011-05-27 18:40:55 +05:30
parent a38515d977
commit 82a9e4bb0d
3 changed files with 7 additions and 9 deletions
-1
View File
@@ -21,6 +21,5 @@
import import_google_contact
import wizard
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
@@ -68,7 +68,7 @@ class synchronize_google_contact(osv.osv_memory):
gd_client = google.google_login(user_obj.gmail_user,user_obj.gmail_password,type='group')
if not gd_client:
raise osv.except_osv(_('Error'), _("Authentication fail check the user and password !"))
res = []
query = gdata.contacts.service.GroupsQuery(feed='/m8/feeds/groups/default/full')
if gd_client:
@@ -105,7 +105,7 @@ class synchronize_google_contact(osv.osv_memory):
'supplier': data.get('supplier', False)
}, context=context)
return partner_id
def set_partner(self, cr, uid, name, address_id, context=None):
partner_pool = self.pool.get('res.partner')
partner_ids = partner_pool.search(cr, uid, [('name', '=', name)], context=context)
@@ -213,7 +213,7 @@ class synchronize_google_contact(osv.osv_memory):
partner_ids.append(partner_id)
addresses.append(res_id)
if not data_ids: #link to google_id if it was not the case before
if not data_ids: #link to google_id if it was not the case before
model_data.update({'res_id': res_id})
model_obj.create(cr, uid, model_data, context=context)
@@ -224,7 +224,7 @@ class synchronize_google_contact(osv.osv_memory):
return partner_ids
else:
return addresses
def _retreive_data(self, entry):
data = {}
data['id'] = entry.id.text
@@ -267,7 +267,7 @@ class synchronize_google_contact(osv.osv_memory):
vals['phone'] = data.get('phone','')
if addr.fax != data.get('fax'):
vals['fax'] = data.get('fax','')
addresss_obj.write(cr, uid, contact_ids, vals, context=context)
return {'type': 'ir.actions.act_window_close'}
@@ -1,7 +1,6 @@
<?xml version="1.0"?>
<openerp>
<data>
<record model="ir.ui.view" id="view_google_login_contact_form">
<field name="name">google.login.contact.form</field>
<field name="model">google.login.contact</field>
@@ -48,13 +47,13 @@
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
<field name="view_id" ref="view_synchronize_google_contact_import_form" />
<field name="view_id" ref="view_google_login_contact_form" />
</record>
<menuitem id="menu_sync_contact"
parent="base.menu_address_book"
action="act_import_google_contacts_form"
action="act_google_login_contact_form"
sequence="40" />
</data>
</openerp>