diff --git a/addons/sync_base/sync_base.py b/addons/sync_base/sync_base.py index f6116225525..f4316889567 100644 --- a/addons/sync_base/sync_base.py +++ b/addons/sync_base/sync_base.py @@ -27,13 +27,6 @@ from osv import fields,osv,orm class res_partner_sync_base: _inherit = "res.partner.address" - _columns = { - 'sync_google':fields.boolean('Synchronize with Google', required=False), - } - _defaults = { - 'sync_google':lambda *a:True - } - def create(self, cr, uid, vals, context=None): id = super(res_partner_sync_base, self).create(cr, uid, vals, context=context) return id @@ -53,7 +46,7 @@ class res_partner_sync_base: def sync_modify(self, cr, uid, ids, vals, context=None, synchronize=True): return True - def sync_modify(self, cr, uid, ids,context=None, synchronize=True): + def sync_unlink(self, cr, uid, ids,context=None, synchronize=True): return True res_partner_sync_base() diff --git a/addons/sync_google_contact/sync_google_contact.py b/addons/sync_google_contact/sync_google_contact.py index f4ca8ce17b8..e9c79576e3b 100644 --- a/addons/sync_google_contact/sync_google_contact.py +++ b/addons/sync_google_contact/sync_google_contact.py @@ -66,6 +66,16 @@ class google_lib(object): self.contact.DeleteContact(selected_entry.GetEditLink().href) return True +class res_partner_sync_base: + _inherit = "res.partner.address" + + _columns = { + 'sync_google':fields.boolean('Synchronize with Google'), + 'google_id': fields.char('Google Contact Id', size=128, readonly=True), + } + + +res_partner_sync_base() # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: