تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
4700 أدوات العرض

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
أكتوبر 24
1824
1
فبراير 22
3559
1
يوليو 24
7335
0
نوفمبر 15
3832
0
مارس 15
4601