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

If an employee is activated, his related records  is updated as undefined. How to handle this in odoo

Suppose if we had created a custom field as many2one using hr.employee and if that employee is deactivated his related records is modified as undefined. I don't need that to modified as undefined

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

@Jerome Guerriat  For E.g in Attendance Module when an employee is deactivated his attendance record is still available under his name

Deactivated employee and his records in group by


الصورة الرمزية
إهمال

So you actually want all related records to be deactivated?

If you archive an employee, you want that employee's attendance to also be archived?

أفضل إجابة

archived records won't be in the result of a standard search, but it should not update any existing relations between models.
Could you give an example with a standard odoo?

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يوليو 19
3845
1
مارس 19
4856
3
أكتوبر 23
8959
1
سبتمبر 23
3399
1
مايو 23
2360