コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1217 ビュー

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?

アバター
破棄
関連投稿 返信 ビュー 活動
3
9月 25
3109
0
8月 25
662
1
8月 25
2808
2
7月 25
8484
2
7月 25
4896