Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
5006 Weergaven

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
Annuleer
Auteur Beste antwoord

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
mrt. 23
5033
1
feb. 25
2954
1
mei 25
1471
0
nov. 22
2305
2
aug. 20
4773