Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1210 Widoki

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?

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
wrz 25
3099
0
sie 25
648
1
sie 25
2782
2
lip 25
8463
2
lip 25
4880