İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
4424 Görünümler

Good day everyone,

I'm trying to get a list of the related invoices that were create from a sale order.  I noticed this field invoice_ids it seems like an array style where each invoice is stored , but I can't figure the way to extract from there the invoice numbers and store it in a separate char field.


Thanks in advance,

Avatar
Vazgeç
En İyi Yanıt

Hi,
The field ‘invoice_ids’ of model ‘sale.order’ represents the ‘account.move’ model records of the corresponding sales order. You can access the invoice number of each invoice using the ‘name’ field of each invoice_ids inside a for loop, in order to avoid singleton error and store inside the required char field.
Regards

Avatar
Vazgeç
Üretici En İyi Yanıt

Thanks Cybrosy.

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Eki 21
2314
2
Haz 25
945
1
May 25
988
2
Kas 24
2193
0
Şub 24
1331