Skip to Content
Menu
This question has been flagged
2 Replies
4524 Rodiniai

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,

Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Autorius Best Answer

Thanks Cybrosy.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
spal. 21
2378
2
birž. 25
1067
1
geg. 25
1100
2
lapkr. 24
2263
0
vas. 24
1409