Hello community,
Following is the error that i am getting when i try to print my customized report taking data from one2many field.
I have also used widget many2many on that one2many field of project task.
Following is the error stack-
Error:
Uncaught TypeError: Cannot read property 'type' of undefined
http://127.0.0.86:8069/web/content/3033-f79d70d/web.assets_backend.js:1258
Traceback:
TypeError: Cannot read property 'type' of undefined
at http://127.0.0.86:8069/web/content/3033-f79d70d/web.assets_backend.js:1258:395
at Function._.each._.forEach (http://127.0.0.86:8069/web/content/3021-13c1776/web.assets_common.js:12:558)
at Class._parseServerData (http://127.0.0.86:8069/web/content/3033-f79d70d/web.assets_backend.js:1258:290)
at http://127.0.0.86:8069/web/content/3033-f79d70d/web.assets_backend.js:1269:450
at Function._.each._.forEach (http://127.0.0.86:8069/web/content/3021-13c1776/web.assets_common.js:12:558)
at Object.<anonymous> (http://127.0.0.86:8069/web/content/3033-f79d70d/web.assets_backend.js:1269:37)
at Object.<anonymous> (http://127.0.0.86:8069/web/content/3021-13c1776/web.assets_common.js:802:681)
at fire (http://127.0.0.86:8069/web/content/3021-13c1776/web.assets_common.js:796:299)
at Object.fireWith [as resolveWith] (http://127.0.0.86:8069/web/content/3021-13c1776/web.assets_common.js:801:198)
at Object.deferred.(anonymous function) [as resolve] (http://127.0.0.86:8069/web/content/3021-13c1776/web.assets_common.js:803:56)
CONSOLE LOG-
line at which error is showing the bold part-
var r1=self.localData[record1ID];var r2=self.localData[record2ID];var data1=_.extend({},r1.data,r1._changes);var data2=_.extend({},r2.data,r2._changes);var orderData1=data1[order.name];var orderData2=data2[order.name];if(list.fields[order.name].type==='many2one'){orderData1=orderData1?self.localData[orderData1].data.display_name:"";orderData2=orderData2?self.localData[orderData2].data.display_name:"";}