Odoo Отсутствующие зависимости: web.ControlPanelMixin - PullRequest
0 голосов
/ 17 марта 2020

Я пытаюсь установить какой-то модуль в сообществе Odoo 13. Зависимость '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, {

Спасибо!

1 Ответ

0 голосов
/ 17 марта 2020

Я думаю, что есть ошибка:

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

Вы можете просмотреть эту документацию

...