I create report on account.invoice
module
and i try to display some data form sale.order
but in account.invoice
table have no order_id
(id related)
what should i do if i want to show some data form sale.order
on account.invoice
report
but without id related to sale.order
?
So, if account.invoice
have order_id
(id related) i can use
[[o.order_id._____]]
Can someone please give me some advice ??
Here is my code
class order(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context=None):
super(order,self).__init__(cr, uid, name, context=context)
so_origin = self.pool.get('account.invoice').browse(cr, uid, uid)
so_obj = self.pool.get('sale.order').browse(cr, uid, so_origin.id)
self.localcontext.update({
'order_id': so_obj.id
})
and in the rml file
[[repeatIn(objects,'o')]]
[[o.order_id._______]]