跳至內容
選單
此問題已被標幟
3930 瀏覽次數

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
1261
0
10月 20
2411
4
4月 24
20243
4
10月 20
4042
2
5月 20
7334