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:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
1
Balas
5711
Tampilan
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!
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
3
Apr 23
|
7312 | ||
|
3
Nov 15
|
5160 | ||
Enable Counters in odoo what is the use of it
Diselesaikan
|
|
1
Mar 25
|
1183 | |
|
0
Nov 24
|
1426 | ||
|
0
Jun 24
|
1489 |