Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
4706 Visualizzazioni

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
Abbandona
Risposta migliore

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

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


Avatar
Abbandona
Risposta migliore

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

You found something?

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
ott 24
1844
1
feb 22
3577
1
lug 24
7354
0
nov 15
3854
0
mar 15
4624