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 | etc.
Hello, i have 2 views for same model, i want to remove create button from one of them, i tried to make 2 tree views and 2 form views, but didn't work
so for example i have a model and 2 menu items each menu item linked with action and each of the actions is linked with the model, so how can i remove create button from one of the views ?
I think having 2 different Tree Views, linked with 2 different split-Action will achieve what you are trying to do.
In one of Tree View, set an attribute as create=false.
P.S. In case you don't want to have an split-Action or separate menu, then in fields_view_get ORM method control the views which are being loaded. In that you probably with the help of a flag, you can decide which Tree View to be loaded i.e a Tree View with Create Access and another one without it.
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/25/16, 8:58 PM|
|Seen: 289 times|
|Last updated: 7/26/16, 4:32 AM|