i got this error
UncaughtPromiseError > OwlError
Uncaught Promise > An error occured in the owl lifecycle (see this Error's "cause" property)
OwlError: An error occured in the owl lifecycle (see this Error's "cause" property)
Error: An error occured in the owl lifecycle (see this Error's "cause" property)
at handleError (http://localhost:8069/web/assets/c42d6d9/web.assets_web.min.js:916:101)
at App.handleError (http://localhost:8069/web/assets/c42d6d9/web.assets_web.min.js:1551:29)
at ComponentNode.initiateRender (http://localhost:8069/web/assets/c42d6d9/web.assets_web.min.js:1007:19)
Caused by: Error: "res.company"."custom_field" field is undefined.
at Field.parseFieldNode (http://localhost:8069/web/assets/c42d6d9/web.assets_web.min.js:7711:231)
at http://localhost:8069/web/assets/c42d6d9/web.assets_web.min.js:8586:865
at visit (http://localhost:8069/web/assets/c42d6d9/web.assets_web.min.js:4251:51)
at visitChildren (http://localhost:8069/web/assets/c42d6d9/web.assets_web.min.js:4250:171)
at visit (http://localhost:8069/web/assets/c42d6d9/web.assets_web.min.js:4251:129)
at visitChildren (http://localhost:8069/web/assets/c42d6d9/web.assets_web.min.js:4250:171)
at visit (http://localhost:8069/web/assets/c42d6d9/web.assets_web.min.js:4251:129)
at visitChildren (http://localhost:8069/web/assets/c42d6d9/web.assets_web.min.js:4250:171)
at visit (http://localhost:8069/web/assets/c42d6d9/web.assets_web.min.js:4251:129)
at visitChildren (http://localhost:8069/web/assets/c42d6d9/web.assets_web.min.js:4250:171)
i did everything correct in simple custom module in odoo 17 i just added a field in the res company model you can check my custom model here https://mega.nz/file/4pE0lA7D#idLXMCd-opGFMObO3ru-uUFiWh263pHKhGHLdsZx86A
problem solved it was a odoo.conf wrong addons path problem