Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3496 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
sie 25
3130
1
lip 25
1325
1
sie 25
1152
0
maj 25
1742
2
maj 25
2194