I want to create a new group user and give it a access right, but I have a problem with csv file
_openerp_
'data': [
'security/ir.model.access.csv', 'security/asinhvien_security.xml',
...
class SinhvienList(osv.osv):
...
security/asinhvien_security.xml:
<data> <record model="ir.module.category" id="asinhvien_group_category"> <field name="name">Tài khoản</field> <field name="description">....</field> </record> <record id="asinhvien_sinhvien_group" model="res.groups"> <field name="name">Sinh viên</field> <field name="category_id" ref="asinhvien_group_category"/> </record> <record id="asinhvien_giangvien_group" model="res.groups"> <field name="name">Giảng viên</field> <field name="category_id" ref="asinhvien_group_category"/> </record> </data>security/ir.model.access.csv
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_asinhvien_giangvien,access.asinhvien.giangvien,model_SinhvienList,asinhvien_giangvien_group,1,1,1,1 access_asinhvien_sinhvien,access.asinhvien.sinhvien,model_SinhvienList,asinhvien_sinhvien_group,1,0,0,0
Thanks for any helpException: Module loading asinhvien failed: file asinhvien\security/ir.model.access.csv could not be processed: Line 1 : No matching record found for external id 'model_SinhvienList' in field 'Object'