Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
3593 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
ago. 25
3396
1
jul. 25
1567
1
ago. 25
1152
0
mai. 25
1893
2
mai. 25
2372