Skip to Content
Menu
This question has been flagged
3053 Views

Hello Team,

I want to chnage Listview template in my module, please guide me,

1> First Template

<?xml version="1.0" encoding="UTF-8"?>

<templates id="template" xml:space="preserve">

<table t-name="MyListView" class="oe_list_content">

<t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>

<thead>

<tr class="oe_list_header_columns">

<th>

My Name

</th>

<th class="oe_list_header_integer"><div>

My Class 

</div></th>

<th class="oe_list_header_float "><div>

Computer Name

</div></th>

<th class="oe_list_header_float "><div>

Join Date

</div></th>

  <th t-if="options.deletable" class="oe_list_record_delete" width="13px"></th>

</tr>

</thead>

</table>

</templates>

2>Second Template :


<?xml version="1.0" encoding="UTF-8"?>

<templates id="template" xml:space="preserve">

<table t-name="ListView" class="oe_list_content">

<t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>

<thead>

<tr class="oe_list_header_columns">

<th>

My Name

</th>

<th class="oe_list_header_integer"><div>

My Class

</div></th>

<th class="oe_list_header_float "><div>

Computer Name

</div></th>

<th class="oe_list_header_float "><div>

Join Date

</div></th>

<th t-if="options.deletable" class="oe_list_record_delete" width="13px"></th>

</tr>

</thead>

</table>

</templates>


In the above, when first template is not reflecting in my module, but second template when I use in my module it will reflect in hole odoo list view, but i want to the output as first template.

please any one guide me what i did wrong

Thanks in advance

Avatar
Discard
Related Posts Replies Views Activity
2
Sep 24
112
0
Oct 20
1577
4
Apr 24
17764
4
Oct 20
2967
2
May 20
6306