Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
4519 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Tekijä Paras vastaus

Thanks Cybrosy.

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
lokak. 21
2377
2
kesäk. 25
1063
1
toukok. 25
1097
2
marrask. 24
2260
0
helmik. 24
1407