Hi,
Can you confirm that the file containing the models are imported in the init file and service is restarted after adding the models ? Ensuring the above may solve the issue.
Right now the system is not able to see the models in the env and thus exception is raised.
Thanks
0
2 答案
0
最佳答案
0
最佳答案
Hi,
First, make sure the model is loaded. You can check this in the Settings->Technical-> Models. Also, ensure that you've added the model's file name in the __init__.py file inside the models folder.
Similarly, make sure the models folder is added in the main __init__.py file.
Please check the following blog or more details:
https://www.cybrosys.com/blog/how-to-create-security-group-and-manage-access-rights-in-odoo-18
Hope it helps