Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4409 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor Nejlepší odpověď

Thanks Cybrosy.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
říj 21
2280
2
čvn 25
872
1
kvě 25
948
2
lis 24
2182
0
úno 24
1310