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
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
1
Beantwoorden
3561
Weergaven
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
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
2
aug. 25
|
3343 | ||
|
1
jul. 25
|
1509 | ||
|
1
aug. 25
|
1152 | ||
|
0
mei 25
|
1860 | ||
|
2
mei 25
|
2337 |