Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
6342 Weergaven

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
Annuleer
Beste antwoord

also make sure the contract is running!

Avatar
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
jun. 17
3449
0
nov. 16
4926
1
okt. 24
2271
1
jul. 25
2623
2
jul. 22
11186