تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5906 أدوات العرض

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.

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

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

In stock_picking there is a field called sale_id.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
4
سبتمبر 24
7221
1
أبريل 18
30
0
نوفمبر 17
3763
0
مارس 15
5594
3
مارس 15
8684