CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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
About This Community
Odoo Training Center
|Asked: 3/25/13, 10:56 PM|
|Seen: 3246 times|
|Last updated: 3/16/15, 8:10 AM|