Write your query like this: cr.execute('select phone from res_partner_address where partner_id=%s ' [b]%[/b] (bom.id,))
and make sure the BOM object exists so you can access it's ID with bom.id Cheers -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=47424#47424 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users
