mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_timeline: allow UNASSIGNED grouping when using M2M field
This commit is contained in:
@@ -495,7 +495,7 @@ odoo.define("web_timeline.TimelineRenderer", function (require) {
|
||||
event_data_transform: function (evt) {
|
||||
const [date_start, date_stop] = this._get_event_dates(evt);
|
||||
let group = evt[this.last_group_bys[0]];
|
||||
if (group && group instanceof Array) {
|
||||
if (group && group instanceof Array && group.length > 0) {
|
||||
group = _.first(group);
|
||||
} else {
|
||||
group = -1;
|
||||
|
||||
Reference in New Issue
Block a user