Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
6297 Vizualizări

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


Imagine profil
Abandonează
Cel mai bun răspuns

also make sure the contract is running!

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
iun. 17
3410
0
nov. 16
4863
1
oct. 24
2247
1
iul. 25
2575
2
iul. 22
11133