Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3581 มุมมอง

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.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ส.ค. 25
3382
1
ก.ค. 25
1549
1
ส.ค. 25
1152
0
พ.ค. 25
1882
2
พ.ค. 25
2356