[IMP] web,spreadsheet_dashboard: add missing props validation
closes odoo/odoo#120323 Task: 3297417 Related: odoo/enterprise#40611 Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
This commit is contained in:
committed by
Lucas Lefèvre
parent
9f2cfb2cdf
commit
2c1096da95
@@ -147,9 +147,6 @@ MoOverview.components = {
|
||||
MoOverviewDisplayFilter,
|
||||
MoOverviewComponentsBlock,
|
||||
};
|
||||
MoOverview.props = {
|
||||
...standardActionServiceProps,
|
||||
globalState: { type: Object, optional: true }, // Appears when coming back from the breadcrumb
|
||||
};
|
||||
MoOverview.props = {...standardActionServiceProps };
|
||||
|
||||
registry.category("actions").add("mrp_mo_overview", MoOverview);
|
||||
|
||||
@@ -10,6 +10,7 @@ import { MobileFigureContainer } from "./mobile_figure_container/mobile_figure_c
|
||||
import { FilterValue } from "@spreadsheet/global_filters/components/filter_value/filter_value";
|
||||
import { loadSpreadsheetDependencies } from "@spreadsheet/helpers/helpers";
|
||||
import { useService } from "@web/core/utils/hooks";
|
||||
import { standardActionServiceProps } from "@web/webclient/actions/action_service";
|
||||
|
||||
import { Component, onWillStart, useState, useEffect } from "@odoo/owl";
|
||||
|
||||
@@ -144,6 +145,7 @@ SpreadsheetDashboardAction.components = {
|
||||
DashboardMobileSearchPanel,
|
||||
MobileFigureContainer,
|
||||
};
|
||||
SpreadsheetDashboardAction.props = { ...standardActionServiceProps };
|
||||
|
||||
registry
|
||||
.category("actions")
|
||||
|
||||
@@ -62,6 +62,8 @@ export const standardActionServiceProps = {
|
||||
action: Object, // prop added by _getActionInfo
|
||||
actionId: { type: Number, optional: true }, // prop added by _getActionInfo
|
||||
className: String, // prop added by the ActionContainer
|
||||
globalState: { type: Object, optional: true }, // prop added by _updateUI
|
||||
state: { type: Object, optional: true }, // prop added by _updateUI
|
||||
};
|
||||
|
||||
function parseActiveIds(ids) {
|
||||
|
||||
Reference in New Issue
Block a user