Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
4672 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

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


Imagine profil
Abandonează
Cel mai bun răspuns

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

You found something?

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
oct. 24
1759
1
feb. 22
3508
1
iul. 24
7292
0
nov. 15
3798
0
mar. 15
4551