跳至內容
選單
此問題已被標幟
2 回覆
2620 瀏覽次數

*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



頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
5月 23
2155
1
7月 23
2681
1
6月 25
1862
1
5月 25
1233
3
7月 25
3478