Skip to Content
Menú
This question has been flagged
2 Respostes
4649 Vistes

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
Best Answer

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

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


Avatar
Descartar
Best Answer

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

You found something?

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
d’oct. 24
1708
1
de febr. 22
3476
1
de jul. 24
7243
0
de nov. 15
3754
0
de març 15
4496