I want to calculate a payslip basis on the worked days & the hourly wage.
I've tried this command
'result = contract.x_studio_transport_allowance * (contract.ressource_calendar_id/contract.full_time_required_hours)
But i've this message
Code python incorrect défini pour la règle de salaire Prime de transport (ITRP).
Erreur : : "'hr.contract' object has no attribute 'ressource_calendar_id'" while evaluating
'result = contract.x_studio_transport_allowance * (contract.ressource_calendar_id/contract.full_time_required_hours)\n'