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

I wanted to update default template user from xml, but due to no update=1 on the xml it is not updating.  what is the best practice to update the template user? 

아바타
취소
베스트 답변

the best way to update the template user is to delete the template user using xml and create the same template user with your modification in it.

you can delete the user using 

<delete id="auth_signup.default_template_user" model="res.users"/>

and create it again(make sure you use the proper ID)

       <record id="auth_signup.default_template_user" model="res.users">
            <field name="name">New Template User</field>
            <field name="login">portaltemplate</field>
            <field name="active" eval="False"/>
            <field name="groups_id" eval="[(6, 0,  [ref('base.group_portal')])]"/>
        </record>

Hope this helps!

아바타
취소
관련 게시물 답글 화면 활동
3
4월 23
7406
3
11월 15
5189
1
3월 25
1270
0
11월 24
1474
0
6월 24
1546