Javascript TypeError:无法读取属性';parentId';未定义的

Javascript TypeError:无法读取属性';parentId';未定义的,javascript,backbone.js,odoo,Javascript,Backbone.js,Odoo,XML文件的代码- 回溯: TypeError: Cannot read property 'parentId' of undefined at Class._getAncestorValueIds (http://localhost:8069/web/content/11479-1cd23a1/web.assets_backend.js:1625:324) at Class._getAncestorValueIds (http://local

XML文件的代码-


回溯:

TypeError: Cannot read property 'parentId' of undefined
            at Class._getAncestorValueIds (http://localhost:8069/web/content/11479-1cd23a1/web.assets_backend.js:1625:324)
            at Class._getAncestorValueIds (http://localhost:8069/web/content/11479-1cd23a1/web.assets_backend.js:1626:79)
            at Class._getAncestorValueIds (http://localhost:8069/web/content/11479-1cd23a1/web.assets_backend.js:1626:79)
            at Class._createCategoryTree (http://localhost:8069/web/content/11479-1cd23a1/web.assets_backend.js:1614:810)
            at http://localhost:8069/web/content/11479-1cd23a1/web.assets_backend.js:1618:50
            at async Promise.all (index 0)
            at async Promise.all (index 0)
            at async Class._createSearchPanel (http://localhost:8069/web/content/11479-1cd23a1/web.assets_backend.js:1075:1139)
            at async Promise.all (index 1)
大家好,我在ODOO13中制作searchpanel时在Odoo中遇到了这个错误。当我运行服务器时。有时它会显示searchpanel而不会出错(从不同的用户登录)。但是在4-5次登录之后。它突然抛出这个js。我知道这表明parentID未定义。但正如我所做的那样,console.log(ParentID)。它给了我输出。但错误仍然存在。我想我做得很好。如果有人遇到这种错误,请帮助我。例如,ParentID显示为30。但这仍然是一个错误

the output is from js- childrenIds: []
display_name: "TSC00003"
folded: true
id: 32
parentId: 30
parent_directory: Array(2)
0: 30
1: "Vinod Rawat"

请提供更多代码。以下是XML文件-SearchPanel定义。 @codemax@rahulrawat,通过编辑question@RohitAmbre,请检查一下。如果您需要更多详细信息,请告诉我。@rahulrawat我想您需要提供整个.js文件。此外,请在
debug=assets
模式下提供回溯。这将有助于我们双方确定问题所在。