openerp-dev-web team mailing list archive
-
openerp-dev-web team
-
Mailing list archive
-
Message #04910
lp:~openerp-dev/openobject-addons/trunk-contact-google-sync-backlog_correction_update_records-uco into lp:~openerp-dev/openobject-addons/trunk-contact-google-sync
Ujjvala Collins (OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-contact-google-sync-backlog_correction_update_records-uco into lp:~openerp-dev/openobject-addons/trunk-contact-google-sync.
Requested reviews:
OpenERP R&D Addons Team 1 (openerp-dev-addons1)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-contact-google-sync-backlog_correction_update_records-uco/+merge/55901
[FIX] sync_google_contact: Fixed problem of updating records for partner address.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-contact-google-sync-backlog_correction_update_records-uco/+merge/55901
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-contact-google-sync.
=== modified file 'sync_google_contact/wizard/google_contact_import.py'
--- sync_google_contact/wizard/google_contact_import.py 2011-03-31 13:08:09 +0000
+++ sync_google_contact/wizard/google_contact_import.py 2011-04-01 11:04:25 +0000
@@ -227,15 +227,15 @@
addr = addresss_obj.browse(cr,uid,contact_ids)[0]
name = str((addr.name or addr.partner_id and addr.partner_id.name or '').encode('utf-8'))
- if not name:
+ if name != data.get('name'):
vals['name'] = data.get('name','')
- if not addr.email:
+ if addr.email != data.get('email'):
vals['email'] = data.get('email','')
- if not addr.mobile:
+ if addr.mobile != data.get('mobile'):
vals['mobile'] = data.get('mobile','')
- if not addr.phone:
+ if addr.phone != data.get('phone'):
vals['phone'] = data.get('phone','')
- if not addr.fax:
+ if addr.fax != data.get('fax'):
vals['fax'] = data.get('fax','')
addresss_obj.write(cr, uid, contact_ids, vals, context=context)
Follow ups