1
votes

I would like to get the corresponding sale order for stock move lines. So for each delivery slip I will be able to provide information contained in the original sales order which motivated the stock move.

Is there any existing relation table that could be use?

1

1 Answers

3
votes

There should be a connection between moves and sale lines:

order = move.procurement_id.sale_line_id.order_id