You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.9 KiB
31 lines
1.9 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<templates>
|
|
<t t-extend="ListView">
|
|
<t t-jquery="thead tr:first-child" t-operation="after">
|
|
<tr t-if="getParent().options && getParent().options.web_x2m_filter" class="web_x2m_filter">
|
|
<th t-att-colspan="columns_count">
|
|
<t t-foreach="getParent().options.web_x2m_filter || {}" t-as="filter">
|
|
<button t-attf-class="oe_button oe_list_add web_x2m_filter #{filter.class || ''}" t-att-data-domain="JSON.stringify(filter.domain || [])" t-att-data-default="filter.default">
|
|
<t t-esc="_t(filter.name)" />
|
|
</button>
|
|
</t>
|
|
<button t-att-data-domain="JSON.stringify(getParent().field.domain)" class="oe_button oe_list_add web_x2m_filter" disabled="disabled"><i class="fa fa-refresh" aria-hidden="true"></i></button>
|
|
</th>
|
|
</tr>
|
|
</t>
|
|
</t>
|
|
<t t-extend="One2Many.listview">
|
|
<t t-jquery="thead tr:first-child" t-operation="after">
|
|
<tr t-if="getParent().o2m.options.web_x2m_filter" class="web_x2m_filter">
|
|
<th t-att-colspan="columns_count">
|
|
<t t-foreach="getParent().o2m.options.web_x2m_filter" t-as="filter">
|
|
<button t-attf-class="oe_button oe_list_add web_x2m_filter #{filter.class || ''}" t-att-data-domain="JSON.stringify(filter.domain || [])" t-att-data-default="filter.default">
|
|
<t t-esc="_t(filter.name)" />
|
|
</button>
|
|
</t>
|
|
<button t-att-data-domain="JSON.stringify(getParent().o2m.field.domain || [])" class="oe_button oe_list_add web_x2m_filter" disabled="disabled"><i class="fa fa-refresh" aria-hidden="true"></i></button>
|
|
</th>
|
|
</tr>
|
|
</t>
|
|
</t>
|
|
</templates>
|