Skip to Content
Menu
This question has been flagged
2 Replies
2662 Rodiniai

*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.'

Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Best Answer

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



Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
geg. 23
2183
1
liep. 23
2712
0
rugp. 25
109
1
birž. 25
1936
1
geg. 25
1313