Skip to Content
मेन्यू
This question has been flagged
2 Replies
4420 Views

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
Discard
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

Avatar
Discard
Author Best Answer

Thanks Cybrosy.

Avatar
Discard
Related Posts Replies Views Activity
0
अक्तू॰ 21
2312
2
जून 25
924
1
मई 25
982
2
नव॰ 24
2187
0
फ़र॰ 24
1322