Failed modules: ["upi.confirm_tree_delete"]
-
重写一个js,代码如下。
1、在浏览器中总是提示的错误是Failed modules: ["upi.confirm_tree_delete"]
,什么问题?(截图如下)2、源码中的
'web.EditableListRenderer'
这个就没有返回的?我这里需要返回吗?
3、session,WebClient
我并有用,但是不写,就是提示missing dependcy
,why?odoo.define('upi.confirm_tree_delete', function (require) { "use strict"; var core = require('web.core'); var session = require('web.session'); var WebClient = require('web.WebClient'); var Dialog = require('web.Dialog'); var EditableListRenderer = require('web.EditableListRenderer'); var _t = core._t; EditableListRenderer.include({ init: function (parent, state, params) { alert('init=='); this._super.apply(this, arguments); this.confirmOnDelete = params.confirmOnDelete; }, events: _.extend({}, ListRenderer.prototype.events, { 'click tr .o_list_record_delete': '_onTrashIconClick', }), _onTrashIconClick: function (event) { alert('000011'); alert('confirmOnDelete=', this.confirmOnDelete); event.stopPropagation(); var id = $(event.target).closest('tr').data('id'); alert('id=' + id); }, }); return EditableListRenderer; });
-
upi.confirm_tree_delete 加载失败 换一个名称呢
-
@guwenfengvip163-com
换了好几个了。