Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5734 Zobrazení

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? 

Avatar
Zrušit
Nejlepší odpověď

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!

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
dub 23
7336
3
lis 15
5161
1
bře 25
1208
0
lis 24
1434
0
čvn 24
1493