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
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
1
Odpowiedz
3221
Widoki
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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
lip 25
|
533 | ||
|
1
cze 25
|
1096 | ||
|
0
maj 25
|
1216 | ||
|
2
maj 25
|
1611 | ||
|
2
kwi 25
|
3213 |