İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
6269 Görünümler

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
Vazgeç
En İyi Yanıt

also make sure the contract is running!

Avatar
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Haz 17
3393
0
Kas 16
4840
1
Eki 24
2213
1
Tem 25
2529
2
Tem 22
11115