summaryrefslogtreecommitdiff
path: root/addons/import_google/wizard/import_google_data.py
diff options
context:
space:
mode:
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>2012-06-29 13:13:30 +0200
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>2012-06-29 13:13:30 +0200
commit9fa150527fa9dd00b47c5b04ca0bdd0935ed51b5 (patch)
treebeba9db119dc2c3bc4bd7977324587f9f3711ace /addons/import_google/wizard/import_google_data.py
parent08d25cb352cadef216294440fce27877bf07d093 (diff)
[IMP] import_google: removed option to create only addresses (it's same object now)
bzr revid: qdp-launchpad@openerp.com-20120629111330-o5d15s49q27x7rh8
Diffstat (limited to 'addons/import_google/wizard/import_google_data.py')
-rw-r--r--addons/import_google/wizard/import_google_data.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/addons/import_google/wizard/import_google_data.py b/addons/import_google/wizard/import_google_data.py
index 9affc13899e..b3b35893e2f 100644
--- a/addons/import_google/wizard/import_google_data.py
+++ b/addons/import_google/wizard/import_google_data.py
@@ -102,7 +102,6 @@ class synchronize_google(osv.osv_memory):
return res
_columns = {
- 'create_partner': fields.selection([('create_all','Create partner for each contact'),('create_address','Import only address')],'Options'),
'customer': fields.boolean('Customer', help="Check this box to set newly created partner as Customer."),
'supplier': fields.boolean('Supplier', help="Check this box to set newly created partner as Supplier."),
'group_name': fields.selection(_get_group, "Group Name",help="Choose which group to import, By default it takes all."),
@@ -110,7 +109,6 @@ class synchronize_google(osv.osv_memory):
}
_defaults = {
- 'create_partner': 'create_all',
'group_name': 'all',
}
@@ -138,8 +136,7 @@ class synchronize_google(osv.osv_memory):
raise osv.except_osv(_('Error'), _("Please specify correct user and password !"))
if obj.group_name not in ['all']:
context.update({ 'group_name': obj.group_name})
- if obj.create_partner=='create_all':
- tables.append('Contact')
+ tables.append('Contact')
else:
tables.append('Address')
context.update({'user': gmail_user,