Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
6254 Zobrazení

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šit
Nejlepší odpověď

also make sure the contract is running!

Avatar
Zrušit
Nejlepší odpověď

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šit
Related Posts Odpovědi Zobrazení Aktivita
0
čvn 17
3367
0
lis 16
4829
1
říj 24
2182
1
čvc 25
2500
2
čvc 22
11110