Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
3666 Visninger

In my case I have to set all the companies in allowed companies that allow the user to see the e-commerce categories in my e-commerce site.
Is there any way that if user is created than we can add all the companies by default in his allowed companies?
I am using odoo 11.

Avatar
Kassér
Bedste svar

You need to write default_get for allowed companies. In default_get you can set all active companies on new user creation.


default=lambda self: self.env['res.company'].search([]).ids
Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
okt. 25
130
3
okt. 25
2506
2
aug. 25
3462
1
jul. 25
1599
1
aug. 25
1153