跳至内容
菜单
此问题已终结
3811 查看

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

形象
丢弃
相关帖文 回复 查看 活动
2
9月 24
1188
0
10月 20
2293
4
4月 24
20070
4
10月 20
3917
2
5月 20
7233