Odoo缺少依赖项:web.ControlPanelMixin
我正在尝试在Odoo13社区中安装一些模块。缺少依赖项Odoo缺少依赖项:web.ControlPanelMixin,odoo,odoo-13,Odoo,Odoo 13,我正在尝试在Odoo13社区中安装一些模块。缺少依赖项'web.ControlPanelMixin',我正在尝试解决此问题,但迄今为止没有成功。 JavaScript代码: odoo.define('crm_dashboard.dashboard', [ 'web.core', 'web.framework', 'web.session', 'web.ajax', 'web.ActionManager', 'web.view_registry', 'web.Widge
'web.ControlPanelMixin'
,我正在尝试解决此问题,但迄今为止没有成功。
JavaScript代码:
odoo.define('crm_dashboard.dashboard', [
'web.core',
'web.framework',
'web.session',
'web.ajax',
'web.ActionManager',
'web.view_registry',
'web.Widget',
'web.AbstractAction',
'web.ControlPanelMixin'
], function (require) {
"use strict";
var core = require('web.core');
var framework = require('web.framework');
var session = require('web.session');
var ajax = require('web.ajax');
var ActionManager = require('web.ActionManager');
var view_registry = require('web.view_registry');
var Widget = require('web.Widget');
var AbstractAction = require('web.AbstractAction');
var ControlPanelMixin = require('web.ControlPanelMixin');
var QWeb = core.qweb;
...
});
我尝试搜索'web.ControlPanelMixin'
声明的位置:
[odoo-13.0]$ grep -rnw ./ -e 'ControlPanelMixin'
./doc/reference/javascript_reference.rst:2221: var ControlPanelMixin = require('web.ControlPanelMixin');
./doc/reference/javascript_reference.rst:2224: var ClientAction = AbstractAction.extend(ControlPanelMixin, {
./doc/reference/javascript_reference.rst:2262:- add ControlPanelMixin in the widget:
./doc/reference/javascript_reference.rst:2266: var ControlPanelMixin = require('web.ControlPanelMixin');
./doc/reference/javascript_reference.rst:2268: var MyClientAction = AbstractAction.extend(ControlPanelMixin, {
./doc/reference/javascript_reference.rst:2277: var SomeClientAction = Widget.extend(ControlPanelMixin, {
./mymodules/odoo_crm_dashboard/static/src/js/crm_dashboard.js:11: 'odoo.web.ControlPanelMixin'
./mymodules/odoo_crm_dashboard/static/src/js/crm_dashboard.js:25:var ControlPanelMixin = require('web.ControlPanelMixin');
./mymodules/odoo_crm_dashboard/static/src/js/crm_dashboard.js:31:var CRMDashboardView = AbstractAction.extend(ControlPanelMixin, {
谢谢大家! 我认为有一个错误:
odoo.define('crm_dashboard.dashboard', [
'web.core',
'web.framework',
'web.session',
'web.ajax',
'web.ActionManager',
'web.view_registry',
'web.Widget',
'web.AbstractAction',
'web.ControlPanelMixin'
]
它是web.ControlPanelMixin而不是odoo.web.ControlPanelMixin
您可以查看此控制面板Mixin已在Odoo 13.0中删除
对象现在可以使用
hasControlPanel:true
,而不是从它扩展。有关示例,请参见。从odoo.web.ControlPanelMixin中删除odoo,它是web.ControlPanelMixin将删除它,但这是一次尝试修复问题。依赖性仍然缺失你有解决方案@Nomad吗??我也面临着类似的问题。Odoo13的web/static/src/js/chrome中缺少ControlPanelMixin。这是试图修复该问题。