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

Hello. I want edit the field for assign the related user for only see the users in the company the user is active, not see all users in the all companies in the odoo.


Thanks.

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

Thank you for the answer. Where I need add this? In the Register rules of the user, Register rules of the group or where?

Thank you for your time, and sorry I dont have a expirience in Odoo.

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

You can add a domain to related user field with the company selected in Employee details.

domain="[('company_id', '=', company_id)]" where first company_id related to User Company and the second related to Employee Company.

If no company is selected in Employee details, the Related User Drop Down will show empty.

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