Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5916 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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

In stock_picking there is a field called sale_id.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 9 24
7266
1
thg 4 18
30
0
thg 11 17
3769
0
thg 3 15
5603
3
thg 3 15
8711