跳至内容
菜单
此问题已终结
2 回复
1383 查看

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.

形象
丢弃
编写者 最佳答案

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.

形象
丢弃
最佳答案

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.

形象
丢弃