İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3548 Görünümler

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.

Avatar
Vazgeç
En İyi Yanıt

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
Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Ağu 25
3290
1
Tem 25
1474
1
Ağu 25
1152
0
May 25
1816
2
May 25
2305