hi, I want to modify ViewManager header in addons/web/static/xml/base.xml by module. based on this article: help.openerp.com/question/2615/how-to-remove-manage-databases/ I created own module like this:
__openerp__.py
{
'qweb' : ['static/src/xml/base.xml', ],
}
/static/src/xml/base.xml
<?xml version="1.0" encoding="UTF-8"?>
<templates>
<t t-extend="ViewManager">
<t t-jquery="table.oe_view_manager_header" t-operation="replace">
<table class="oe_view_manager_header">
<col width="20%" />
<col width="35%" />
<col width="15%" />
<col width="30%" />
<tr class="oe_header_row oe_header_row_top">
<td colspan="2">
<h2 class="oe_view_title" t-if="widget.flags.display_title !== false">
<span class="oe_view_title_text oe_breadcrumb_title" />
</h2>
</td>
<td colspan="2">
<div class="oe_view_manager_view_search" t-opentag="true" />
</td>
</tr>
<tr class="oe_header_row">
<td>
<div class="oe_view_manager_buttons" />
</td>
<!-- removed COLSPAN="2" here -->
<td>
<div class="oe_view_manager_sidebar" />
</td>
<!-- added <TD> here -->
<td>
some text
</td>
<!-- end of edit -->
<td>
<ul class="oe_view_manager_switch oe_button_group oe_right">
<t t-if="widget.views_src.length > 1" t-foreach="widget.views_src" t-as="view">
<li class="oe_e">
<a t-attf-class="oe_vm_switch_#{view.view_type}" t-att-data-view-type="view.view_type" t-att-title="view.button_label" />
</li>
</t>
</ul>
<div class="oe_view_manager_pager oe_right" />
</td>
</tr>
</table>
</t>
</t>
</templates>
But I cannot manage to get this working. Header just never changes. If I try to edit another view (e.g. web-kanban) Im succesful, but dont know why it is not possible to replace any div or table in ViewManager. Tried to install that module, tried to load it with --load=mymodule,web
but no success.