Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
4507 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore Risposta migliore

Thanks Cybrosy.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
ott 21
2362
2
giu 25
1047
1
mag 25
1066
2
nov 24
2240
0
feb 24
1401