Please create a field in Sale Order line model which you want to show information from sale order with field.related type on order_id column of Sale Order line. Because order_id is linked to Sale Order.
For the example, please see definition of order_partner_id column in Sale Order line model.
'order_partner_id': fields.related('order_id', 'partner_id', type='many2one', relation='res.partner', store=True, string='Customer'),
same like above field, you can define more fields which you want to show from Sale Order into Sale order line.
Hope this helps,
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: 6/30/15, 2:31 AM|
|Seen: 376 times|
|Last updated: 6/30/15, 3:06 AM|