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

In Salary rule form we define Python code for every rule right.I want to take the actual result value of the python code inside my onchange method and pass it to my variable.
My code :

amount_python_compute = self.allowance_id.amount_python_compute
print('self.allowance_id.amount_python_compute : ', amount_python_compute)

Result :
self.allowance_id.amount_python_compute : result = categories.BASIC + categories.ALW

It retuns the string value as it's but I want the actual amount for that rule.Any Idea?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 9 25
3151
0
thg 8 25
704
1
thg 8 25
2883
2
thg 7 25
8530
2
thg 7 25
4924