コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3588 ビュー

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
アバター
破棄
関連投稿 返信 ビュー 活動
2
8月 25
3391
1
7月 25
1564
1
8月 25
1152
0
5月 25
1888
2
5月 25
2370