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
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
1
Trả lời
5706
Lượt xem
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!
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
3
thg 4 23
|
7312 | ||
|
3
thg 11 15
|
5159 | ||
|
1
thg 3 25
|
1182 | ||
|
0
thg 11 24
|
1426 | ||
|
0
thg 6 24
|
1489 |