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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
1
الرد
5719
أدوات العرض
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
أبريل 23
|
7321 | ||
|
3
نوفمبر 15
|
5161 | ||
|
1
مارس 25
|
1194 | ||
|
0
نوفمبر 24
|
1431 | ||
|
0
يونيو 24
|
1490 |