mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[14.0] [FIX] web_advanced_search: Many2one selection on Filters missing
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!-- Copyright 2017-2018 Jairo Llopis <jairo.llopis@tecnativa.com>
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<templates>
|
||||
<t t-inherit="web.FilterMenu" t-inherit-mode="extension" owl="1">
|
||||
<xpath expr="//CustomFilterItem" position="after">
|
||||
@@ -8,6 +6,24 @@
|
||||
<AdvancedFilterItem fields="props.fields" />
|
||||
</xpath>
|
||||
</t>
|
||||
<t t-inherit="web.CustomFilterItem" t-inherit-mode="extension" owl="1">
|
||||
<xpath expr="//select[@t-elif]" position="after">
|
||||
<t t-elif="fieldType === 'many2one'">
|
||||
<t
|
||||
t-if="selectedOperator.symbol === '=' || selectedOperator.symbol === '!='"
|
||||
>
|
||||
<Relational />
|
||||
</t>
|
||||
<input
|
||||
t-else=""
|
||||
type="text"
|
||||
class="o_input"
|
||||
t-att-value="condition.displayedValue"
|
||||
t-on-input="_onValueInput(condition)"
|
||||
/>
|
||||
</t>
|
||||
</xpath>
|
||||
</t>
|
||||
<t t-name="web_advanced_search.AdvancedFilterItem" owl="1">
|
||||
<div class="o_generator_menu">
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user