Hello all,
I have an employee. A product is linked with this employee :
The product cost is 12.5 $ per worked hour :
How could I get this 12.5 $ in this python rule for salary?
(here, I write PRODUCT.COST, but it is not good)
Debug :
This one work if calculate in pay slip : result = worked_days.WORK100.number_of_hours * 12.5
This one doesn't work if I calculate in payslip (error) : result = worked_days.WORK100.number_of_hours * employee.product_id.cost
Change to: result = worked_days.WORK100.number_of_hours * employee.product_id.standard_price
It was exactly what I needed. Thanks a lot!