odoo raise ValueError('External ID not found in the system: %s' % xmlid)

raise ValueError('External ID not found in the system: %s' % xmlid)

在保證自己的代碼完整且無錯誤的情況下,出現了這個錯誤

基本上是因爲 action 放到了 view 前面。

如果view 和 action 在同一文件中,檢查兩者的順序

如果view 和 action 不在同一文件中,檢查__manifest__文件中的引用順序。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章