Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
4990 Vues

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
Ignorer
Auteur Meilleure réponse

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
mars 23
5030
1
févr. 25
2945
1
mai 25
1463
0
nov. 22
2297
2
août 20
4770