Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
4653 Vistas

Hi,

I'm using odoo 8.0 with hr_payroll module and i would like to calculate seniority in years using a python rule. Is this possible?

The starting date is referenced in contract.date_start

Avatar
Descartar
Mejor respuesta

Sorry for the late response.
It can be done in days like this:

seniority = (contract.date_end - contract.date_start).days


Avatar
Descartar
Mejor respuesta

I have exactly the same problem. I am looking for the solution for more than three weeks without finding.

You found something?

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
oct 24
1709
1
feb 22
3476
1
jul 24
7243
0
nov 15
3757
0
mar 15
4499