[FIX] web_filter_header_button: custom view compatibility

In custom views, like the reconciliation one, that use the control panel
we must prevent loading the FilterButton component.

TT49664
pull/2857/head
David 2024-06-18 17:01:00 +02:00
parent ad9e5f2b5c
commit 08b681cb4b
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<templates> <templates>
<t t-inherit="web.Legacy.ControlPanel" t-inherit-mode="extension" owl="1"> <t t-inherit="web.Legacy.ControlPanel" t-inherit-mode="extension" owl="1">
<xpath expr="//div[hasclass('o_cp_bottom')]" position="after"> <xpath expr="//div[hasclass('o_cp_bottom')]" position="after">
<t t-if="env.view.type !== 'form'"> <t t-if="env.view and env.view.type !== 'form'">
<FilterButton /> <FilterButton />
</t> </t>
</xpath> </xpath>