CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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,
About This Community
Odoo Training Center
|Asked: 6/30/15, 2:31 AM|
|Seen: 631 times|
|Last updated: 6/30/15, 3:06 AM|