Odoo Help

Welcome!

This community 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.

0

Do modules have to be installed in my DB to inherit from or import into a custom module if they are in my openerp instance folde

By
John Baldwin
on 5/20/14, 10:44 PM 580 views

This may seem like a total noob question but if I want to inherit and significantly alter a form view from a different module, does that module need to be installed in the DB I'm working with or can I inherit it since it is in the openerp instance files but not installed? My reason for this is not wanting the entire menu and module to be accessible, only the model and customized form/tree views for a particular feature.

If the answer is yes, how can I use a custom module to remove the menu for the unwanted module access? Is there a replace command for that? Or do I have to hide it with a permissions file?

I want to hard code this and not use Settings>Config>Menu Items because I read that they should not be relied on for security reasons and I would just feel better if I knew my changes can't be over-written in an update.

1

Nehal

--Nehal--
2090
| 5 2 8
Ahmadabad, India
--Nehal--
Nehal
On 5/20/14, 11:48 PM

Hi,

When you inherit object or view, you need to add that module as dependent module in _openerp_.py. So it will be installed when you install your custom module. 

If you want to hide or dont want to access the menus from that module, you can rewrite the menu by using same xml id. And assign group to those specific menus.

Hope this may help you. 

0
John Baldwin
On 5/21/14, 1:32 AM

Thank you Nehal for the clarification. I also found more information about my questions in the documentation under Security.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

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

Question tools

1 follower(s)

Stats

Asked: 5/20/14, 10:44 PM
Seen: 580 times
Last updated: 3/16/15, 8:10 AM