Skip to Content
Menú
This question has been flagged
1 Respondre
5884 Vistes

Hello,

I have a delivery order OUT/00008 with the id 11. How can I get the corresponding sale order and the invoice if exists, programmatically?

Update: I found the relation between sale_order and account_invoice at sale_order_invoice_rel. But where is the relation between sale_order and stock_picking(delivery orders) ?

Thank you.

Avatar
Descartar
Autor Best Answer

I don't know why I don't have seen it...

In stock_picking there is a field called sale_id.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
4
de set. 24
7168
1
d’abr. 18
30
0
de nov. 17
3746
0
de març 15
5543
3
de març 15
8643