2017-08-23 13 views

答えて

1
oをリストでorder_line_recsを期待シングルトン

order_recs = order_obj.search([('date_order','<=',previous_start_date),('date_order','>=',previous_new_rec_date)]).id 

order_line_recs = order_line_obj.search([('order_id','in',order_recs)]) 

を期待しているため

id属性の代わりにIDを使用する必要があります。例:

order_recs = order_obj.search([('date_order','<=',previous_start_date),('date_order','>=',previous_new_rec_date)]).ids 

これは、RecordSetからIDのリストを返します。

+0

ありがとうございます!有用! –

関連する問題