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
- Buchhaltung
- Lager
- PoS
- Project
- MRP
Diese Frage wurde gekennzeichnet
1
Antworten
3636
Ansichten
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
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
RegistrierenVerknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
---|---|---|---|---|
|
0
Okt. 25
|
22 | ||
|
3
Okt. 25
|
2464 | ||
|
2
Aug. 25
|
3439 | ||
|
1
Juli 25
|
1580 | ||
|
1
Aug. 25
|
1153 |