コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4509 ビュー

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
2367
2
6月 25
1047
1
5月 25
1071
2
11月 24
2245
0
2月 24
1403