Skip to Content
Menu
This question has been flagged
1 Reply
1540 Views

can we use any variable or object except the ones that are predefined and if not how  we can use the data from an object except the predefined ones in the python expression 

Avatar
Discard
Best Answer

hello,

you can call method to an object from salary rule. for this into the salary rule select the Amount Type = "python code" and set the python code like

 result = payslip.env['object.name'].method_name(). 

and into the method you have to do your code and return the value.

I hope this may helps you.

Avatar
Discard
Related Posts Replies Views Activity
1
Dec 24
397
0
Nov 24
107
1
Jul 24
4042
2
Jun 24
3470
1
Dec 23
449