Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
4953 Visninger

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.

Avatar
Kassér
Forfatter Bedste svar

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 .

Avatar
Kassér
Bedste svar

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

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
mar. 23
5024
1
feb. 25
2934
1
maj 25
1447
0
nov. 22
2279
2
aug. 20
4765