Skip to Content
Menu
This question has been flagged
1 Atsakyti
5073 Rodiniai

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?

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
saus. 25
2340
2
rugs. 22
10020
0
geg. 22
3007
1
geg. 22
2562
2
bal. 22
4971