[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
This commit is contained in:
David
2024-06-18 17:01:00 +02:00
parent ad9e5f2b5c
commit 08b681cb4b

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>