summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorJulien Mougenot <jum@odoo.com>2020-07-03 14:02:35 +0000
committerJulien Mougenot <jum@odoo.com>2020-07-03 15:48:42 +0000
commitff6263dd3f6665ab481c255b607a3e8fc638498c (patch)
treea6ba9356976a23288ca5e1b5031e639aa8ceb8e4 /addons/web/static/src/xml
parent6c97a9eb608eefb423e5811d716b8706fe2859aa (diff)
[FIX] web: Support widgets in search view
Since the refactor of the control panel, support of "widgets" attributes in the search view archs has been inadvertently dropped. Now, they are once again supported. Task 2061795 closes odoo/odoo#54066 X-original-commit: f33b0bc7a93e60bd0ed00b40d7459225ec0b749a Signed-off-by: Aaron Bohy (aab) <aab@odoo.com> Signed-off-by: Julien Mougenot (jum) <jum@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index fab3018fb46..abe3856b91e 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -604,7 +604,7 @@
</a>
<a href="#" t-on-click.prevent="">
<t t-if="src.label" t-esc="src.label"/>
- <t t-elif="['date', 'datetime'].includes(props.fields[src.fieldName].type)">
+ <t t-elif="['date', 'datetime'].includes(src.type)">
<t>Search <em t-esc="src.description"/> at: <strong t-esc="state.inputValue"/></t>
</t>
<t t-else="">Search <em t-esc="src.description"/> for: <strong t-esc="state.inputValue"/></t>