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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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...
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
1
Jan 25
|
2338 | ||
|
2
Sep 22
|
10014 | ||
|
0
Mei 22
|
3006 | ||
|
1
Mei 22
|
2555 | ||
|
2
Apr 22
|
4965 |