How can I get invoice type ("in_invoice" or "out_invoice")? I try this but I have an error. (AttributeError: 'browse_record_list' object has no attribute 'type')
invoice = self.pool.get('account.invoice').browse(cr, uid, invoice_id, context=context) if invoice.type =='in_invoice': return True else: return False
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: 11/5/13, 3:20 AM|
|Seen: 810 times|
|Last updated: 3/16/15, 8:10 AM|