I am adding custom One2many field in sale.order form view just below the sale.order.line, I am computing values on_change it is displaying values but when I am going to save the sale order it is generating error that order_id.sale.order(17,) is not matching.
Because I am creating one2many field before creating the order.
But is there any way to get rid of this problem.