Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
4673 Weergaven

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
Annuleer
Beste antwoord

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

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


Avatar
Annuleer
Beste antwoord

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

You found something?

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
okt. 24
1759
1
feb. 22
3509
1
jul. 24
7292
0
nov. 15
3798
0
mrt. 15
4551