Is there a way to override openerp’s default views, developing a module instead of doing it manually from Settings / Customization / User Interface / Views…?
We are using OpenERP and customizing a lot of default views (Project List, Invoice List, Invoice Search etc) adding and hiding fields from list and search filters / groups, we are doing it manually view by view from web client.
Is there a way to develop a module where I can write the xml for all the views I want to customize, and when I install that module all that views (and window actions as well) will be updated?
You can use View Inheritance to customize any view using XML files.
Using inheritance, you can add, remove and replace elements to any view. You can also define new complete views to replace the default instead of inheritance. Just create a new module with the XML files that customizes or replaces the current views and load that module. The module folder should contain only
__init__.py,__openerp__.pyand the XML files.Here is a simple example to remove the
EAN13field from the product view.__init__.pyempty file__openerp__.py:product.xml: