Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
4452 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur Beste antwoord

Thanks Cybrosy.

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
okt. 21
2326
2
jun. 25
1005
1
mei 25
1019
2
nov. 24
2213
0
feb. 24
1378