Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
7480 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

@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


Ảnh đại diện
Huỷ bỏ

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?

Câu trả lời hay nhất

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?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 19
3845
1
thg 3 19
4859
3
thg 10 23
8965
1
thg 9 23
3402
1
thg 5 23
2360