跳至内容
菜单
此问题已终结
2 回复
4437 查看

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,

形象
丢弃
最佳答案

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

形象
丢弃
编写者 最佳答案

Thanks Cybrosy.

形象
丢弃
相关帖文 回复 查看 活动
0
10月 21
2320
2
6月 25
994
1
5月 25
993
2
11月 24
2205
0
2月 24
1374