Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1246 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
zář 25
3139
0
srp 25
695
1
srp 25
2865
2
čvc 25
8519
2
čvc 25
4920