Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4701 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

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


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

You found something?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 10 24
1837
1
thg 2 22
3568
1
thg 7 24
7349
0
thg 11 15
3848
0
thg 3 15
4621