Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
4995 Näkymät

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
Hylkää
Tekijä Paras vastaus

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
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
maalisk. 23
5031
1
helmik. 25
2946
1
toukok. 25
1465
0
marrask. 22
2299
2
elok. 20
4771