跳至內容
選單
此問題已被標幟
2 回覆
4487 瀏覽次數

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
2335
2
6月 25
1035
1
5月 25
1049
2
11月 24
2234
0
2月 24
1395