Skip to Content
Menú
This question has been flagged
2 Respostes
4376 Vistes

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
Descartar
Best Answer

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
Descartar
Autor Best Answer

Thanks Cybrosy.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
d’oct. 21
2244
2
de juny 25
820
1
de maig 25
896
2
de nov. 24
2115
0
de febr. 24
1257