I am using OpenOffice Designer to do my Invoices report. Do anyone know what is the code for the customer reference because i try to use [[ o.client_order_ref ]] but seem like not working
You can not directly get client_order_ref, it is sale order field.
def _get_client_order_ref(self, data):
ref = '' sale_obj = self.pool.get('sale.order') sale_ids = sale_obj.search(cr, uid, [('origin', '=', data.origin)] if sale_ids: ref = sale_obj.browse(cr, uid, sale_ids).client_order_ref return ref
you have to do something like this
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: 3/25/13, 10:56 PM|
|Seen: 2488 times|
|Last updated: 3/16/15, 8:10 AM|