Does anyone knows how to get an id of a many2one field inside it's one2many? For example, In sale_order if i want to add a sale_order_line then i want to access first the current sale order. My purpose here is to manipulate some data to be set in sale_order_lin. This question actually is related with my previous question.
Thanks for any help.