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

Hi,

Im working odoo version 7.0.I need a solution for below given problem.I have searched and got some ids of account_move.Now i will browse by this ids from same(account_move) class.when i iterate these ids i will get all of account_move_line ids of relevant move_ids.

j_ids=journal_obj.search(cr,uid,[('company_id','=',context['uid']),('state','=','posted'),('date','>=',d1),('date','<=',d2)], order='date asc')

journals=journal_obj.browse(cr,uid,j_ids)

for jnal in journals:

    for j_line in jnal.line_id

I need them to be grouped by account (not by ids) and to be printed in report.I have posted my code.Please suggest me some solutions.Thanks in advance.


アバター
破棄
最善の回答

Try to use context for it:

 context="{'group_by':'field_name_to_group_by'}"
pass  this context when you search / browse for records.
アバター
破棄
関連投稿 返信 ビュー 活動
2
9月 16
8898
1
5月 16
8012
1
11月 22
22559
1
10月 22
15887
2
11月 15
10534