Hello,
I create my own module, and I need to have groups.
I have the ir.model.access.csv like this:
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
"access_perso_schedule","staff.scheduler","personal_schedule","group_staff_management_user",1,1,1,1
And I have the group on the xml view like this:
So if I add the security after the installation, it works, but if I want to intall all in one, I always have an error, in the process of ir.model.access, or on the xml view.
I found on the internet theory about, but not a good example.
Have you an idea, or good links to manage groups?
My Error is:
"No matching record found for external id 'personal_schedule' in field 'Object'."
My __openerp__.py is:
{
"name" : "Staff Management",
"version" : "0.1",
"author" : "Luis Domingues & Romain Monnard",
"category" : "Tools",
"description" : "Management of time and task of staff.",
"depends" : [
'base',
'web_calendar'
],
"js": [
'static/lib/dhtmlxscheduler_timeline.js',
'static/*/js/*.js'
],
"css": ['static/*/css/*.css'],
"init_xml" : [],
"demo_xml" : [],
"data" : [
'security/staff_management_security.xml',
'security/ir.model.access.csv',
'staff_management.xml',
'staff_tasks.xml',
'staff_comment_type.xml',
'staff_authorization.xml',
'staff_comments.xml',],
"installable" : True,
"active" : False,
"qweb" : ['static/*/xml/*.xml']
}
Thanks.
↧