콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3596 화면

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
3400
1
7월 25
1568
1
8월 25
1152
0
5월 25
1895
2
5월 25
2376