Odoo Help


restrict logins other than admin in creating customer

sneha antony
on 6/16/14, 8:39 AM 1,202 views

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.


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)


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?

sneha antony
on 6/17/14, 12:24 AM

It should work by setting the "perm_create" to 1 to the group(s) allowed to create, and 0 to all other groups.

Luis Filipe Castanheira
on 6/17/14, 6:04 AM

where to set "perm_create" to 1?

sneha antony
on 6/17/14, 6:49 AM

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

Luis Filipe Castanheira
on 6/19/14, 10:33 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 6/16/14, 8:39 AM
Seen: 1202 times
Last updated: 3/16/15, 8:10 AM