I have these func that we can use right and i can use it to get some data, and id like to know what can i do with them, if there is any guide
# Available variables:
#----------------------
# payslip: hr.payslip object
# employee: hr.employee object
# contract: hr.contract object
# rules: dict containing the rules code (previously computed)
# categories: dict containing the computed salary rule categories (sum of amount of all rules belonging to that category).
# worked_days: dict containing the computed worked days
# inputs: dict containing the computed inputs.
# Note: returned value have to be set in the variable 'result'
for example i do something like this
vacation_days_total = 0
for line in worked_days:
# Check if the line is for vacation days by comparing the code
if line['code'] == 'LEAVE120':
vacation_days_total += line['number_of_days']
to get to total days of the leaves, but id like to know the day i took that leave, anyone can help?