diff options
| author | Nasreddin (bon) <bon@odoo.com> | 2021-01-25 11:12:23 +0000 |
|---|---|---|
| committer | Nasreddin (bon) <bon@odoo.com> | 2021-01-25 11:27:47 +0000 |
| commit | 5f13ac8cf52c2042fe0b4697cbf41aa7f8714427 (patch) | |
| tree | e576f8604938f99f03751f9c8072edf699e6b49e | |
| parent | f6f9671963640dbd7de33a8cc4597c9d9db7cfba (diff) | |
[FIX] calendar: correct 'Date' filter behavior
Issue
- Install calendar
- Go to calendar and set 'week' view
- Go to first week of the year
- Add a 'Full Day' event
- Add an event of 'few hours'
- Click on filters -> Date -> Q1
Only 'Full Day' events remains displayed.
Cause
'start_date' is used to in the 'Date' filter
and this field is set only on 'Full Day' events.
Solution
Use 'start' field instead since always set.
opw-2439460
closes odoo/odoo#64992
Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
| -rw-r--r-- | addons/calendar/views/calendar_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/calendar/views/calendar_views.xml b/addons/calendar/views/calendar_views.xml index 7745e3d9203..4d9d6d450a0 100644 --- a/addons/calendar/views/calendar_views.xml +++ b/addons/calendar/views/calendar_views.xml @@ -280,7 +280,7 @@ <field name="show_as"/> <filter string="My Meetings" help="My Meetings" name="mymeetings" domain="[('partner_ids.user_ids', 'in', [uid])]"/> <separator/> - <filter string="Date" name="filter_start_date" date="start_date"/> + <filter string="Date" name="filter_start_date" date="start"/> <separator/> <filter string="Archived" name="inactive" domain="[('active', '=', False)]"/> <group expand="0" string="Group By"> |
