I want only the admin login to create customers and products in my openerp.I tried using the suggestions from the forum but this is not working.Please somebody could explain the complete procedure to restrict users from creating the above two.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Účtovníctvo
- Sklady
- PoS
- Project
- MRP
This question has been flagged
If you're developing a module, you can put a file named ir.model.access.csv inside your security folder (include it in the data section of your __openerp__.py) with the following layout to create ACL's
(In this working example, all users from four groups can read from that object, but only manager can read, write, create, unlink. More explanation on this subject here: https://www.odoo.com/forum/Help-1/question/What-are-these-in-irmodelaccesscsv--12430)
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_generic_request_user,generic_request.user,model_generic_request,group_processos_user,1,0,0,0
access_generic_request_logistics,generic_request.logistics,model_generic_request,group_processos_logistics,1,0,0,0
access_generic_request_hr,generic_request.hr,model_generic_request,group_processos_hr,1,0,0,0
access_generic_request_manager,generic_request.manager,model_generic_request,group_processos_manager,1,1,1,1
If not, you can create these rules accessing the Settings »» Technical »» Security »» Access Control List option in OpenERP.
how,using the Access Control List can the creation permission be restricted?Can you please explain?
It should work by setting the "perm_create" to 1 to the group(s) allowed to create, and 0 to all other groups.
where to set "perm_create" to 1?
If you go to the ACL via Settings »» Technical »» Security »» Access Control List , the perm_create is the third checkbox (check it to set it to "1", uncheck to set it to "0"), if you are configuring your module via the ir.model.access.csv file, the perm_creat bit is the third bit (from the series of ones and zeros at the end of each line) Each line has the syntax of the first line of the file: id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
RegistráciaRelated Posts | Replies | Zobrazenia | Aktivita | |
---|---|---|---|---|
|
4
jan 20
|
2946 | ||
|
0
mar 15
|
3468 | ||
|
3
máj 24
|
2438 | ||
|
1
dec 21
|
9954 | ||
|
1
júl 20
|
5377 |