I am trying to calculate payslips using a work entry (extra hour work entry with the code HED100)
First, I want odoo to detect how many extra hours (HED100) an employee worked for this particular payslip, then multiply that number of extra hours times whatever rate I want to apply.
First I used the conditions as “always true” but when the employee has zero extra hours it wouldn’t let me calculate the payslip b/c HED100 = 0.
Then, I tried to used this formula but its telling me I have an error in my formula
Condition: Python expression: result = inputs.HED100.amount > 0
then,
Calculation: Python expression: result = (contract.hourly_wage) * (worked_days.HED100.number_of_hours) * (1.25)
I will attach the URL of a picture of the salary rule
Any idea? I need some help