Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1261 Näkymät

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
3
syysk. 25
3155
0
elok. 25
706
1
elok. 25
2890
2
heinäk. 25
8537
2
heinäk. 25
4925