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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Proyecto
- MRP
Se marcó esta pregunta
1
Responder
3976
Vistas
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
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
|
1
oct 25
|
602 | ||
|
|
2
oct 25
|
1187 | ||
|
|
1
nov 25
|
2223 | ||
|
|
0
nov 25
|
165 | ||
|
|
1
nov 25
|
3445 |