跳至內容
選單
此問題已被標幟
2 回覆
4692 瀏覽次數

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
1809
1
2月 22
3546
1
7月 24
7324
0
11月 15
3822
0
3月 15
4586