其他分享
首页 > 其他分享> > odoo15 js this.do_warn 不能用了?

odoo15 js this.do_warn 不能用了?

作者:互联网

Uncaught TypeError: this.do_warn is not a function
    at Class._create_file (web.assets_backend.min.js:10281)
    at executeBound (web.assets_common.min.js:181)
    at Class.bound (web.assets_common.min.js:182)
    at FileReader.<anonymous> (web.assets_common.min.js:4851)

通过原码分析,需要更改下
this.do_warn(_t("You must select a directory first"));
        
this.displayNotification({ message: _.str.sprintf(
    _t("%d records successfully imported"),
    results.ids.length
) });

标签:do,assets,min,odoo15,js,warn,web
来源: https://blog.csdn.net/fqfq123456/article/details/122448707