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

Is possible to have the start date field of the accrual period in time off allocations form creation to be the contract start date of the employee in the BY EMPLOYEE mode automatically .

 Any help is appreciated.

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

Hello Jainesh 

Thank you for the solution , i just want to know where i must put this code knowing that i'm a beginner in Odoo .

الصورة الرمزية
إهمال
أفضل إجابة

Hello Garaz

Yes it is possible

start_date = fields.Date(string="Start Date")
contract_start_date = fields.Date(string="Contact start Date", compute="compute_date")

@api.depends('start_date')
def compute_date(self):
self.employee_start_date = self.start_date

I hope this code is helpful for you.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مارس 23
5121
1
فبراير 25
3051
1
مايو 25
1552
0
نوفمبر 22
2370
2
أغسطس 20
4850