Hi,
For this what you have to do is that create a access rights for this. Either you can do it from the UI or from the code. See the sample to see how it can be done from the code.
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
id_for_this,a_name_for this,module_name.model_model_name,your_group_name,1,0,0,0
Above is a general case,
see a sample with the model sale.order for the group named test_group
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
sale_test_group_access,sale.test.group.access,sale.model_sale_order,test_group,1,0,1,1
Once you have applied this access right, the users in group test_group will not see edit button for the model sale.order
You can create file inside security folder with the name ir.model.access.csv and mention this in manifest file
Thanks