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

I am trying to get every line id of hr.payroll.run  by doing this :

run_pool = self.pool.get('hr.payslip.run')
        line = run_pool.slip_ids.id and run_pool.slip_ids.id.id or False

 

but it the server said  me the object haven't slip_ids field. Why?

頭像
捨棄
最佳答案

Hello,

you can get the line ids by using

slip_ids = [x.id for x in run_pool.browse(cr, uid,run_id, context=context).slip_ids]


try it...

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
1月 25
2339
2
9月 22
10016
0
5月 22
3007
1
5月 22
2558
2
4月 22
4969