So, I'm trying get the value of a field as a string, and all I get when I cast the self.pool.get method to a string is a big fat "None"
Here's my code:
ccNum = str( self.pool.get('account.voucher').browse(cr,uid,'card_number',context=None) )
Can I not cast this to a string? If not, then what do I need to do to get the value out as a string instead of an object?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 9/27/13, 5:47 PM|
|Seen: 727 times|
|Last updated: 3/16/15, 8:10 AM|