跳至内容
菜单
此问题已终结
2 回复
4671 查看

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

形象
丢弃
最佳答案

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

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


形象
丢弃
最佳答案

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

You found something?

形象
丢弃
相关帖文 回复 查看 活动
1
10月 24
1758
1
2月 22
3506
1
7月 24
7290
0
11月 15
3798
0
3月 15
4549