跳至内容
菜单
此问题已终结

Hello Community


I have a multi company, multi website setup. If a new portal user registers himself over the website I'm facing the problem that he always only has access to the Website he registered on. Even if I change the default user template for a new portal user nothing changes in the new users. 


Is it possible to automatically grant access to 2 companies on register? Thank you for your help. 

形象
丢弃
最佳答案

Hi,


By default, when a new portal user registers on a website in a multi-company setup, Odoo only assigns them to the website’s company. If you want them to have access to two companies automatically, you need customization: either create an automated server action on res.users to add the second company when the user is created, or build a small custom module that overrides the signup process. Out of the box, Odoo won’t grant access to multiple companies on registration.


References:

* https://www.odoo.com/documentation/16.0/applications/websites/website/configuration/multi_website.html

* https://www.odoo.com/sl_SI/forum/pomoc-1/multi-company-multi-website-multiple-portal-accounts-246573

* https://www.odoo.com/sl_SI/forum/pomoc-1/odoo-13-how-to-ensure-that-portal-user-is-redirected-to-the-correct-website-in-a-multi-website-environment-171402


Hope it helps

形象
丢弃
相关帖文 回复 查看 活动
1
1月 24
1686
2
10月 23
1988
2
7月 17
4120
1
9月 24
5015
0
2月 24
1371