Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1250 Tampilan

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?

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
3
Sep 25
3142
0
Agu 25
696
1
Agu 25
2867
2
Jul 25
8521
2
Jul 25
4920