Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
6419 Lượt xem

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


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

also make sure the contract is running!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 6 17
3520
0
thg 11 16
5002
1
thg 10 24
2363
1
thg 7 25
2751
2
thg 7 22
11250