Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
4525 Visninger

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
Kassér
Bedste svar

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
Kassér
Forfatter Bedste svar

Thanks Cybrosy.

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
okt. 21
2379
2
jun. 25
1069
1
maj 25
1101
2
nov. 24
2263
0
feb. 24
1411