Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1936 Visualizzazioni

Hi Forum! 

I have 4 models called 'hr.employees', 'hr.employee.yearly.holidays', 'hr.holidays', 'hr.holidays.status'. 

In 'hr.employee' I have a field called: "yearly_holidays_ids = fields.One2many('hr.employee.yearly.holidays')" 

and the 'hr.employee.yearly.holidays' model I have a field called "holidays_ids = fields.Many2many('hr.holidays')" 

In 'hr.holidays' I have a field called: "holiday_status_id = fields.Many2one('hr.holidays.status')" 

In 'hr.holidays.status' model I have a field called "name" I want to acces it from hr.employee model how can i get the “name” field of the hr.holiday.status model to the hr.employee model?

Thank you for your help! Regards, Steven

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
giu 25
5203
3
lug 20
11910
4
ott 24
5377
2
giu 19
2955
0
nov 16
4252