Skip to Content
Menu
This question has been flagged
1 Reply
13254 Views

i login threw the new use id and password, example as demo and demo but when i login its not showing the my module which i create in addon_custom so i want know how can i set a group for that so can see the view looks like when i work as admin ,

i created security file ,ir.access.csv file,xml for that which is given below which one of my module student

ir.access.csv :-

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink

demo_admin, student.student,model_studnet_student,student.group_demo,1,1,1,1

demo_group.xml :-

    <record id="group_demo" model="res.groups">

        <field name="name">Personalize student mgmt</field>

        <field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>

        <field name="comment">demo_student</field>

    </record>

so now tell me what chnages i shoud do becuse when i give the group attr to the one of the menu of student_student model is showing external id not found so please explain the what changes i have to do in csv,xml and group attrs value 

thank you in advance

Avatar
Discard

Group and Access Rights in Odoo: https://goo.gl/4jAhtH

Best Answer

Hi Tushar Donga,

Please try this with csv code.

access_demo_admin,student.student.demo.user,student.model_studnet_student,student.group_demo,1,1,1,1 

And also please check the "__manifest__.py" file.

"security_data.xml" file is added or not!

Thanks

Avatar
Discard
Author

hi Nikhil,i added two file in manifest.py file one is csv and second is demo_group.xml file which is shown in my question is there any other file i have to add ? and after changing csv file its still showing error like -

Exception: Module loading student_mgmt failed: file student_mgmt/security/ir.model.access.csv could not be processed:

No matching record found for external id 'student.model_studnet_student' in field 'Object'

Author

hi Nikhil, there is probelm with model id i spelled wrong and second thing is that in group id i only write student as odule name its student_mgmt.group_demo ,thank you

access_demo_admin,student.student.demo.user,student_mgmt.model_studnet_student,student_mgmt.group_demo,1,1,1,1

Related Posts Replies Views Activity
1
Oct 24
130
0
Nov 15
3184
1
Mar 15
3623
1
Mar 15
7073
10
Dec 23
34635