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...
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 1 25
|
2339 | ||
|
2
thg 9 22
|
10016 | ||
|
0
thg 5 22
|
3007 | ||
|
1
thg 5 22
|
2558 | ||
|
2
thg 4 22
|
4969 |