问题描述
<searchpanel class="gwssb_file">
<field name="parent_directory" icon="fa-folder"/>
<field icon="fa-folder" name="directory" domain="[['parent_directory','=',parent_directory]]" select="multi"/>
<field groupby="category" icon="fa-tag" name="tags" select="multi"/>
</searchpanel>
跟踪:
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中制作搜索面板时在odoo中遇到此错误。当我运行服务器时。有时它显示搜索面板时没有错误(来自不同用户的登录)。但是在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"
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)