Skip to Content
Menú
This question has been flagged
1 Respondre
5076 Vistes

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
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
1
de gen. 25
2340
2
de set. 22
10020
0
de maig 22
3007
1
de maig 22
2562
2
d’abr. 22
4971