تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1538 أدوات العرض

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
يوليو 20
10775
4
أكتوبر 24
4539
2
يونيو 19
2370
0
نوفمبر 16
3362
1
أغسطس 15
4144