I am trying to get all Purchase Order Lines on product form view in a one2many relational field.
If I add bellow relation[bold] on product.template, it won't work because purchase order line has no inverse relation with product.template, rather it has relation with product.product
Similarly if I add it on product.product, pythonically it will work, but I wont be able to get on product form view as the view is defined for product.template.
pol_ids = fields.One2many('purchase.order.line', 'product_id', string='Purchases')
To make it simple: How can we get all purchase order lines( in one2many) on product form view?