When build module in odoo 12 , why do we need to add access rights for models in file ir.model.access.csv?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
Hi,
While creating module in Odoo 12 and when you define new models you have to specify the acess control list for the model, this is doing in the below version also.
By default the newly created models/menu will onlt be visible for the admin user in odoo11 and below, the same menu/model won't be visible for other users if the security is not given.
In odoo12, admin user is not having the ID 1, to view the models without giving the security you can switch to super user. If you need other users to view it, you have to give the security.
For switching to super user, activate developer mode and click the debugger menu near logged in users name in the menu bar and click Become Super User option.
Thanks
Thank u so much Niyas Raphy
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up