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

I have an requirement that when i install a module the groups which i have created should be equal to True how can i achieve this?

아바타
취소

@yoromang not work for me?!

베스트 답변

Make it part of a group which is installed by default might be a handy solution.

아바타
취소
베스트 답변

Check below example here group Edit Product Sale Price is true for all base users 

<record id="group_edit_product_sale_price" model="res.groups">
    <field name="name">Edit Product Sale Price</field>
    <field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
</record>

아바타
취소
베스트 답변
<record id="base.default_user" model="res.users">
<field name="groups_id" eval="[(4,ref('base.group_user')),(4,ref('your_module.your_group'))]"/>

</record>
아바타
취소

You might have to re-install your module for the changes to take effect

@syrine it should work, try to re-install if possible
You can also do it manually. set the group on the default user ( settings -> users & companies -> users (filter: inactive users) .

each new user copies its default values from the (default user template)

관련 게시물 답글 화면 활동
2
5월 24
2280
1
4월 23
14758
9
12월 23
24049
1
5월 20
6500
1
5월 19
2984