未捕获的ReferenceError:未定义pyeval

时间:2017-06-23 11:48:19

标签: openerp export-to-excel odoo-10

当我点击总帐上的导出XLSX 时,我收到错误: pyeval未定义

enter image description here

任何想法我该怎么处理它?<​​/ 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)

1 个答案:

答案 0 :(得分:2)

通过在文件上添加声明变量 pyeval 来解决问题: web_pdf_preview / static / src / js / web_pdf_preview.js

var pyeval = require('web.pyeval');