Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
4455 Vizualizări

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,

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor Cel mai bun răspuns

Thanks Cybrosy.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
oct. 21
2326
2
iun. 25
1006
1
mai 25
1020
2
nov. 24
2213
0
feb. 24
1379