Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1534 Ansichten

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
3
Juli 20
10744
4
Okt. 24
4530
2
Juni 19
2364
0
Nov. 16
3357
1
Aug. 15
4099