hi all,
i run simple query and tried to retrieve data from the res_partner_address
table and i am getting the following error
phone_no = cr.fetchone()[0]
TypeError: 'NoneType' object is unsubscriptable
following is the query that i wrote and i print the out put and some objects
have the None type so what i need to do to fix this?
cr.execute('select phone from res_partner_address where partner_id=%s
',(bom.id,))
phone_no = cr.fetchone()[0]
print phone_no
-------------------- m2f --------------------
--
http://www.openobject.com/forum/viewtopic.php?p=47413#47413
-------------------- m2f --------------------
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users