X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=addons%2Fimport_google%2Ftest%2Ftest_sync_google_contact_import_partner.yml;h=ca138b1816144f6373d7be807a54b47ca3ff1111;hb=b999a061d835a5e1695fa1b3883346a76e64a49b;hp=4eadbf0f100207417c6edf13091e5440b1261f52;hpb=1d8361415af46450f644fb407457e16ae99eb955;p=odoo%2Fodoo.git diff --git a/addons/import_google/test/test_sync_google_contact_import_partner.yml b/addons/import_google/test/test_sync_google_contact_import_partner.yml index 4eadbf0..ca138b1 100644 --- a/addons/import_google/test/test_sync_google_contact_import_partner.yml +++ b/addons/import_google/test/test_sync_google_contact_import_partner.yml @@ -26,11 +26,11 @@ - | I check whether the Partners are created or not. - - !python {model: res.partner.address }: | + !python {model: res.partner }: | addr_obj = self.pool.get('ir.model.data') addr_ids = addr_obj.search(cr, uid, []) - data_ids = addr_obj.search(cr, uid, [('model','=','res.partner.address'),('module','=','synchronize_google')]) + data_ids = addr_obj.search(cr, uid, [('model','=','res.partner'),('module','=','synchronize_google')]) address_ids = map(lambda x: x.res_id, [child for child in addr_obj.browse(cr, uid, data_ids) if child.res_id]) - partner_ids = map(lambda x: x.partner_id.id, [addr for addr in self.browse(cr, uid, address_ids) if addr.partner_id]) + partner_ids = map(lambda x: x.parent_id.id, [addr for addr in self.browse(cr, uid, address_ids) if addr.parent_id]) assert partner_ids, 'Partners not created !' \ No newline at end of file