Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2684 มุมมอง

*Trying install app for the payroll odoo-15-Enterprise*

KeyError: 'Field schedule_pay referenced in related field definition hr.contract.schedule_pay does not exist.'

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi
I am also having this issue and your explanation doesn't quiet give enough clarity
please i would really appreciate if you could help out

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

The schedule_pay actually referenced with the salary struture_id in the hr. contract module and the payroll module used the compute function to add the schedule_pay field


schedule_pay = fields.Selection(related='structure_type_id.default_struct_id.schedule_pay', depends=())


many2one field for linking the hr. contract module


Hope it helps



อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ค. 23
2200
1
ก.ค. 23
2749
Batches of pay slips แก้ไขแล้ว
1
ก.ย. 25
214
1
ก.ย. 25
2009
1
มิ.ย. 25
2031