Skip to Content
Menu
This question has been flagged
2 Replies
6448 Zobrazenia

hi,

i want to add salary rule in odoo 

for that i awnt to set python formula like 

result=-(contract.wage/30)*worked_days.Unpaid.number_of_days 

and in condition i added following python code 

result=worked_days.Unpaid and worked_days.Unpaid.number_of_days or False

it i make salary rule as "always true" so it return "error in python code" in that


Avatar
Zrušiť
Best Answer

also make sure the contract is running!

Avatar
Zrušiť
Best Answer

Hi,

please check  your rule code is correct as 'Unpaid'. If my answer is not as you wish then you have to elaborate your question. Please give more details

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
jún 17
3528
0
nov 16
5014
1
okt 24
2382
1
júl 25
2787
2
júl 22
11272