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.
This question has been flagged
1
Reply
5207
Views
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
1
Apr 26
|
1708 | ||
|
|
2
Jan 26
|
4219 | ||
|
|
0
Jun 26
|
5 | ||
|
|
1
Jun 26
|
2155 | ||
|
|
0
Jun 26
|
21 |