当我点击总帐上的导出XLSX 时,我收到错误: pyeval未定义
任何想法我该怎么处理它?</ p>
在我收到的网址上添加debug=assets
之后:
http://localhost:8069/web_pdf_preview/static/src/js/web_pdf_preview.js:117
Retraçage :
ReferenceError: pyeval is not defined
at Class.ir_actions_report_xml (http://localhost:8069/web_pdf_preview/static/src/js/web_pdf_preview.js:117:30)
at Class.ir_actions_report_xml (http://localhost:8069/web/static/src/js/framework/class.js:122:38)
at Class.do_action (http://localhost:8069/web/static/src/js/action_manager.js:672:33)
at Class.do_action (http://localhost:8069/web/static/src/js/framework/widget.js:409:37)
at Class.do_action (http://localhost:8069/web/static/src/js/framework/widget.js:409:37)
at Class.do_action (http://localhost:8069/web/static/src/js/framework/widget.js:409:37)
at Object.handler (http://localhost:8069/web/static/src/js/framework/view.js:97:29)
at Object.<anonymous> (http://localhost:8069/web/static/lib/jquery/jquery.js:3276:89)
at fire (http://localhost:8069/web/static/lib/jquery/jquery.js:3119:58)
at Object.fireWith [as resolveWith] (http://localhost:8069/web/static/lib/jquery/jquery.js:3231:49)
答案 0 :(得分:2)
通过在文件上添加声明变量 pyeval 来解决问题: web_pdf_preview / static / src / js / web_pdf_preview.js
var pyeval = require('web.pyeval');