I have an requirement that when i install a module the groups which i have created should be equal to True how can i achieve this?
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
Make it part of a group which is installed by default might be a handy solution.
Check below example here group Edit Product Sale Price is true for all base users
<field name="name">Edit Product Sale Price</field>
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
</record>
<record id="base.default_user" model="res.users">
<field name="groups_id" eval="[(4,ref('base.group_user')),(4,ref('your_module.your_group'))]"/>
</record>
You might have to re-install your module for the changes to take effect
@syrine it should work, try to re-install if possible
You can also do it manually. set the group on the default user ( settings -> users & companies -> users (filter: inactive users) .
each new user copies its default values from the (default user template)
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
2
Mei 24
|
2032 | ||
|
1
Apr 23
|
14491 | ||
how to assign menu to groups
Diselesaikan
|
|
9
Des 23
|
23791 | |
|
1
Mei 20
|
6231 | ||
|
1
Mei 19
|
2754 |
@yoromang not work for me?!