[FIX] spreadsheet_dashboard_{}: remove gantt, map and cohort views from action

before this commit, on clicking the dashboard from community edition the message is shown that "No default view of type 'gantt' could be found !". similarly for cohort and map views also.

as gantt,map and cohort view is part of enterprise edition, removing it from actions.

closes odoo/odoo#108899

X-original-commit: 6729613b5aef8eaaa62b5f76165fafbb46b94be5
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
This commit is contained in:
niyasraphy
2023-01-02 12:56:33 +01:00
parent d918d27ede
commit 64135d90ad
2 changed files with 7 additions and 7 deletions
@@ -50,12 +50,12 @@
"cells": {
"A7": {
"style": 1,
"content": "[Events Status](odoo://view/{\"viewType\":\"graph\",\"action\":{\"domain\":[],\"context\":{\"group_by\":[\"stage_id\"],\"graph_measure\":\"__count\",\"graph_mode\":\"bar\",\"graph_groupbys\":[\"stage_id\"]},\"modelName\":\"event.event\",\"views\":[[false,\"kanban\"],[false,\"calendar\"],[false,\"list\"],[false,\"gantt\"],[false,\"form\"],[false,\"pivot\"],[false,\"graph\"],[false,\"map\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Events\"})",
"content": "[Events Status](odoo://view/{\"viewType\":\"graph\",\"action\":{\"domain\":[],\"context\":{\"group_by\":[\"stage_id\"],\"graph_measure\":\"__count\",\"graph_mode\":\"bar\",\"graph_groupbys\":[\"stage_id\"]},\"modelName\":\"event.event\",\"views\":[[false,\"kanban\"],[false,\"calendar\"],[false,\"list\"],[false,\"form\"],[false,\"pivot\"],[false,\"graph\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Events\"})",
"border": 1
},
"A19": {
"style": 1,
"content": "[Top Venues](odoo://view/{\"viewType\":\"pivot\",\"action\":{\"domain\":[[\"address_id\",\"!=\",false]],\"context\":{\"group_by\":[\"address_id\"],\"pivot_measures\":[\"__count\"],\"pivot_column_groupby\":[],\"pivot_row_groupby\":[\"address_id\"]},\"modelName\":\"event.event\",\"views\":[[false,\"kanban\"],[false,\"calendar\"],[false,\"list\"],[false,\"gantt\"],[false,\"form\"],[false,\"pivot\"],[false,\"graph\"],[false,\"map\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Events\"})",
"content": "[Top Venues](odoo://view/{\"viewType\":\"pivot\",\"action\":{\"domain\":[[\"address_id\",\"!=\",false]],\"context\":{\"group_by\":[\"address_id\"],\"pivot_measures\":[\"__count\"],\"pivot_column_groupby\":[],\"pivot_row_groupby\":[\"address_id\"]},\"modelName\":\"event.event\",\"views\":[[false,\"kanban\"],[false,\"calendar\"],[false,\"list\"],[false,\"form\"],[false,\"pivot\"],[false,\"graph\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Events\"})",
"border": 1
},
"A20": {
@@ -105,7 +105,7 @@
},
"A32": {
"style": 1,
"content": "[Top Tags](odoo://view/{\"viewType\":\"pivot\",\"action\":{\"domain\":[[\"tag_ids\",\"!=\",false]],\"context\":{\"group_by\":[\"tag_ids\"],\"pivot_measures\":[\"__count\"],\"pivot_column_groupby\":[],\"pivot_row_groupby\":[\"tag_ids\"]},\"modelName\":\"event.event\",\"views\":[[false,\"kanban\"],[false,\"calendar\"],[false,\"list\"],[false,\"gantt\"],[false,\"form\"],[false,\"pivot\"],[false,\"graph\"],[false,\"map\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Events\"})",
"content": "[Top Tags](odoo://view/{\"viewType\":\"pivot\",\"action\":{\"domain\":[[\"tag_ids\",\"!=\",false]],\"context\":{\"group_by\":[\"tag_ids\"],\"pivot_measures\":[\"__count\"],\"pivot_column_groupby\":[],\"pivot_row_groupby\":[\"tag_ids\"]},\"modelName\":\"event.event\",\"views\":[[false,\"kanban\"],[false,\"calendar\"],[false,\"list\"],[false,\"form\"],[false,\"pivot\"],[false,\"graph\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Events\"})",
"border": 1
},
"A33": {
@@ -300,12 +300,12 @@
},
"E7": {
"style": 1,
"content": "[Registration Status](odoo://view/{\"viewType\":\"graph\",\"action\":{\"domain\":[],\"context\":{\"group_by\":[\"state\"],\"graph_measure\":\"__count\",\"graph_mode\":\"bar\",\"graph_groupbys\":[\"state\"]},\"modelName\":\"event.registration\",\"views\":[[false,\"graph\"],[false,\"pivot\"],[false,\"kanban\"],[false,\"list\"],[false,\"form\"],[false,\"cohort\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Attendees\"})",
"content": "[Registration Status](odoo://view/{\"viewType\":\"graph\",\"action\":{\"domain\":[],\"context\":{\"group_by\":[\"state\"],\"graph_measure\":\"__count\",\"graph_mode\":\"bar\",\"graph_groupbys\":[\"state\"]},\"modelName\":\"event.registration\",\"views\":[[false,\"graph\"],[false,\"pivot\"],[false,\"kanban\"],[false,\"list\"],[false,\"form\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Attendees\"})",
"border": 1
},
"E19": {
"style": 1,
"content": "[Top Templates](odoo://view/{\"viewType\":\"pivot\",\"action\":{\"domain\":[[\"event_type_id\",\"!=\",false]],\"context\":{\"group_by\":[\"event_type_id\"],\"pivot_measures\":[\"__count\"],\"pivot_column_groupby\":[],\"pivot_row_groupby\":[\"event_type_id\"]},\"modelName\":\"event.event\",\"views\":[[false,\"kanban\"],[false,\"calendar\"],[false,\"list\"],[false,\"gantt\"],[false,\"form\"],[false,\"pivot\"],[false,\"graph\"],[false,\"map\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Events\"})",
"content": "[Top Templates](odoo://view/{\"viewType\":\"pivot\",\"action\":{\"domain\":[[\"event_type_id\",\"!=\",false]],\"context\":{\"group_by\":[\"event_type_id\"],\"pivot_measures\":[\"__count\"],\"pivot_column_groupby\":[],\"pivot_row_groupby\":[\"event_type_id\"]},\"modelName\":\"event.event\",\"views\":[[false,\"kanban\"],[false,\"calendar\"],[false,\"list\"],[false,\"form\"],[false,\"pivot\"],[false,\"graph\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Events\"})",
"border": 1
},
"E20": {
@@ -355,7 +355,7 @@
},
"E32": {
"style": 1,
"content": "[Top Organizers](odoo://view/{\"viewType\":\"pivot\",\"action\":{\"domain\":[[\"organizer_id\",\"!=\",false]],\"context\":{\"group_by\":[\"organizer_id\"],\"pivot_measures\":[\"__count\"],\"pivot_column_groupby\":[],\"pivot_row_groupby\":[\"organizer_id\"]},\"modelName\":\"event.event\",\"views\":[[false,\"kanban\"],[false,\"calendar\"],[false,\"list\"],[false,\"gantt\"],[false,\"form\"],[false,\"pivot\"],[false,\"graph\"],[false,\"map\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Events\"})",
"content": "[Top Organizers](odoo://view/{\"viewType\":\"pivot\",\"action\":{\"domain\":[[\"organizer_id\",\"!=\",false]],\"context\":{\"group_by\":[\"organizer_id\"],\"pivot_measures\":[\"__count\"],\"pivot_column_groupby\":[],\"pivot_row_groupby\":[\"organizer_id\"]},\"modelName\":\"event.event\",\"views\":[[false,\"kanban\"],[false,\"calendar\"],[false,\"list\"],[false,\"form\"],[false,\"pivot\"],[false,\"graph\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Events\"})",
"border": 1
},
"E33": {
@@ -173,7 +173,7 @@
},
"A45": {
"style": 1,
"content": "[Late Receipts](odoo://view/{\"viewType\":\"list\",\"action\":{\"domain\":[\"&\",[\"picking_type_code\",\"=\",\"incoming\"],\"&\",[\"state\",\"in\",[\"assigned\",\"waiting\",\"confirmed\"]],\"|\",\"|\",[\"has_deadline_issue\",\"=\",true],[\"date_deadline\",\"<\",\"2022-09-15\"],[\"scheduled_date\",\"<\",\"2022-09-15\"]],\"context\":{\"group_by\":[]},\"modelName\":\"stock.picking\",\"views\":[[false,\"list\"],[false,\"kanban\"],[false,\"form\"],[false,\"calendar\"],[false,\"map\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Late Receipts\"})",
"content": "[Late Receipts](odoo://view/{\"viewType\":\"list\",\"action\":{\"domain\":[\"&\",[\"picking_type_code\",\"=\",\"incoming\"],\"&\",[\"state\",\"in\",[\"assigned\",\"waiting\",\"confirmed\"]],\"|\",\"|\",[\"has_deadline_issue\",\"=\",true],[\"date_deadline\",\"<\",\"2022-09-15\"],[\"scheduled_date\",\"<\",\"2022-09-15\"]],\"context\":{\"group_by\":[]},\"modelName\":\"stock.picking\",\"views\":[[false,\"list\"],[false,\"kanban\"],[false,\"form\"],[false,\"calendar\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Late Receipts\"})",
"border": 1
},
"A46": {