Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
4655 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

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


Awatar
Odrzuć
Najlepsza odpowiedź

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

You found something?

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
paź 24
1711
1
lut 22
3476
1
lip 24
7246
0
lis 15
3758
0
mar 15
4504