diff options
| author | Adrian Torres <adt@odoo.com> | 2020-02-11 09:36:40 +0000 |
|---|---|---|
| committer | Adrian Torres <adt@odoo.com> | 2020-02-12 11:09:05 +0000 |
| commit | 97a5093117782eddd207a379f78dbe8e32d88fa4 (patch) | |
| tree | 0f17e718946bd2d436a9be39f1bcccd7c9dbdb94 /addons/im_livechat/report | |
| parent | eb08ac11ff96456ba1df237c5850049c104739a8 (diff) | |
[FIX] *: specify at least one field in search views
Without at least one field, performing a search in these models' search
view is outright impossible.
closes odoo/odoo#45177
X-original-commit: 0aabfbff3ce5d68bf37e1734ba7aa43f62803f3a
Related: odoo/enterprise#8379
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/im_livechat/report')
| -rw-r--r-- | addons/im_livechat/report/im_livechat_report_channel_views.xml | 1 | ||||
| -rw-r--r-- | addons/im_livechat/report/im_livechat_report_operator_views.xml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/addons/im_livechat/report/im_livechat_report_channel_views.xml b/addons/im_livechat/report/im_livechat_report_channel_views.xml index c9c4f6ae18d..99d1001391b 100644 --- a/addons/im_livechat/report/im_livechat_report_channel_views.xml +++ b/addons/im_livechat/report/im_livechat_report_channel_views.xml @@ -30,6 +30,7 @@ <field name="model">im_livechat.report.channel</field> <field name="arch" type="xml"> <search string="Search report"> + <field name="channel_name"/> <filter name="missed_session" string="Missed sessions" domain="[('nbr_speaker','<=', 1)]"/> <filter name="treated_session" string="Treated sessions" domain="[('nbr_speaker','>', 1)]"/> <filter name="last_24h" string="Last 24h" domain="[('start_date','>', (context_today() - datetime.timedelta(days=1)).strftime('%%Y-%%m-%%d') )]"/> diff --git a/addons/im_livechat/report/im_livechat_report_operator_views.xml b/addons/im_livechat/report/im_livechat_report_operator_views.xml index c608df0f896..f2c1fd9da45 100644 --- a/addons/im_livechat/report/im_livechat_report_operator_views.xml +++ b/addons/im_livechat/report/im_livechat_report_operator_views.xml @@ -30,6 +30,7 @@ <field name="model">im_livechat.report.operator</field> <field name="arch" type="xml"> <search string="Search report"> + <field name="partner_id"/> <filter name="last_24h" string="Last 24h" domain="[('start_date','>', (context_today() - datetime.timedelta(days=1)).strftime('%%Y-%%m-%%d') )]"/> <filter name="start_date_filter" string="This Week" domain="[ ('start_date', '>=', (datetime.datetime.combine(context_today() + relativedelta(weeks=-1,days=1,weekday=0), datetime.time(0,0,0)).to_utc()).strftime('%Y-%m-%d %H:%M:%S')), |
