Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3536 Представления

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
3250
1
июл. 25
1437
1
авг. 25
1152
0
мая 25
1790
2
мая 25
2271