Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
4699 Visualizações

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
Cancelar
Melhor resposta

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

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


Avatar
Cancelar
Melhor resposta

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

You found something?

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
out. 24
1824
1
fev. 22
3559
1
jul. 24
7335
0
nov. 15
3832
0
mar. 15
4601