Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
4675 Prikazi

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

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

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


Avatar
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
okt. 24
1760
1
feb. 22
3511
1
jul. 24
7293
0
nov. 15
3799
0
mar. 15
4553