Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
5059 Prikazi

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?

Avatar
Opusti
Best Answer

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...

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
jan. 25
2339
2
sep. 22
10016
0
maj 22
3007
1
maj 22
2558
2
apr. 22
4969