Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
11467 มุมมอง

I have created one user (student) in school Management System in openerp.

The Admin user is the default user in OpenErp. Admin have  all the access rights to acees the Tree view and Form View while How can I restrict the the student user to view only 
tree view.

My Question is how can i hide the Form View When the student user is logged into the system.I wanted to display  only the the tree view when he or she is logged into the system while admin can display both the view like form and tree.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

ya its possible but when i logged into admin then form view is enabled and the login with some another user then its disabled. and which kind of access rules i have to write for that.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

In settings->user interface->views and find your form view and add your user group in  groups tab

otherwise add a group tag in your form like <field name="group_ids">[(4, ref('base.group_user'))]</field> it may be usefull to you

อวตาร
ละทิ้ง

When adding the "group_ids" on the form view, I must add it on the model on the python side, isn't ?

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มิ.ย. 18
8092
3
ธ.ค. 16
26511
1
ก.ย. 15
4363
2
มี.ค. 15
5171
Postgres Psycopg2 Unix Socket problemito แก้ไขแล้ว
3
ก.พ. 23
44688