跳至内容
菜单
此问题已终结
2 回复
2518 查看
OwlError: An error occured in the owl lifecycle (see this Error's "cause" property)
    at handleError (http://localhost:8069/web/assets/5a144fc/web.assets_web.min.js:916:101)
    at App.handleError (http://localhost:8069/web/assets/5a144fc/web.assets_web.min.js:1544:29)
    at Fiber._render (http://localhost:8069/web/assets/5a144fc/web.assets_web.min.js:941:19)
    at Fiber.render (http://localhost:8069/web/assets/5a144fc/web.assets_web.min.js:939:6)
    at ComponentNode.initiateRender (http://localhost:8069/web/assets/5a144fc/web.assets_web.min.js:1007:47)

Caused by: TypeError: ctx.this.state.get_emp_image_url is not a function
    at HrDashboard.template (eval at compile (http://localhost:8069/web/assets/5a144fc/web.assets_web.min.js:1502:374), :23:39)
    at HrDashboard.template (eval at compile (http://localhost:8069/web/assets/5a144fc/web.assets_web.min.js:1502:374), :20:35)
    at Fiber._render (http://localhost:8069/web/assets/5a144fc/web.assets_web.min.js:940:96)
    at Fiber.render (http://localhost:8069/web/assets/5a144fc/web.assets_web.min.js:939:6)
    at ComponentNode.initiateRender (http://localhost:8069/web/assets/5a144fc/web.assets_web.min.js:1007:47)


形象
丢弃
最佳答案

were you able to figure out the solution? we are having exact same error.

形象
丢弃

In my memory there might be some syntax error in .js file,mostly in the setup() fragment.
Sorry I couldn't re-cap more details since haven't had this kind of issue for some time.

最佳答案

Hi,
if you have custom modules in your db, check and see from which module get_emp_image_url is coming from, if you find the module containing this field, either install/upgrade the app or try uninstalling it from the db and see if the error goes.

Thanks

形象
丢弃
编写者

I have checked in my custom module about "get_emp_image_url". but I couldn't find it. What should I do now. As you said, after uninstalling the custom module, the error gets resolved but I need to use that module. Help me please.

编写者

I have reinstalled, and the same issue is showing again.

编写者

I have reinstalled, and the same issue is showing again. Later I have searched in Log but it is not running without any error.

编写者

I mean the log is running without any error

编写者

Anyone, please help me to solve it.

which is your custom module

编写者

Custom Dashboard

as the issue is confirmed that is comes from a third party app, can you report it to its author

编写者

I found the area where the code related to "get_emp_image_url" is present. Below is the code:

get_emp_image_url(employee){
return window.location.origin + '/web/image?model=hr.employee&field=image_1920&id='+employee;
}