Odoo Help

0
0
Gokulakrishnan M
On 10/11/18, 5:13 AM

Hi !

1. In your CSV File, You can control it by using below code. Here id must be unique and class name must be represented by model_sample_model( _name='sample.model').

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_rule_for_sample_model,give_your_name,model_sample_model,group_samples_manager,1,0,0,0

2. You can directly create ACL in Settings -> Technical -> Security -> Access Control List (Technical menu item not visible if you are not in debug mode.

3. Using fields_view_get method its also helpful to hide button based on user.

0
Avatar

Maniganda

--Maniganda--

1125
| 6 8 7
Bangalore, India
--Maniganda--
Maniganda
On 10/11/18, 4:27 AM

Hi , the above code sets the create and edit button invisible  irrespective of the group.

you need to control it using ir_model_access.csv file,

include your object and specify the group and CRUD permission

You can refer any standard module for the syntax and usage

or you can achieve it with fields_view_get method

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

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)

Stats

Asked: 10/10/18, 4:00 AM
Seen: 191 times
Last updated: 10/11/18, 5:13 AM