Since v15 its possible to create 'Salary Rule Parameters'. I'm trying to reference such a rule in a python code.
I'm aware of how to reference to, for example, an input parameter:
# Available variables:
#----------------------
# payslip: object containing the payslips
# employee: hr.employee object
# contract: hr.contract object
# rules: object containing the rules code (previously computed)
# categories: object containing the computed salary rule categories (sum of amount of all rules belonging to that category).
# worked_days: object containing the computed worked days.
# inputs: object containing the computed inputs.
# Note: returned value have to be set in the variable 'result'
So in order to reference an input variable, this is the syntax:
result = inputs.variable_name.amount * 0.10
But the documentation is not showing how to reference the newly introduced 'Salary Rule Parameter'. I already tried:
rule_parameter.variable_name.amount
and some other combinations of the word rule and parameter, but to no avail. Anybody knows how to reference it?