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:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
3545
查看
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
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
2
8月 25
|
3277 | ||
|
1
7月 25
|
1462 | ||
|
1
8月 25
|
1152 | ||
|
0
5月 25
|
1809 | ||
|
2
5月 25
|
2291 |