Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
2619 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Risposta migliore

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



Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
mag 23
2154
1
lug 23
2679
1
giu 25
1855
1
mag 25
1230
3
lug 25
3475