Hi,
i wanted to change the name of the folder for a custom module which has been already installed and has been referenced many times inside the code. when i change the folder name and all other referenced places accordingly, i get KeyError and the system cannot find my custom app. Any tips on how to do it effeciently? Thanks in Advance.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
Hello Guhan
First try 2 things
- Updating your server without the name of the folder with only db and the folder path to your folder
- update app list from the apps page
it this doesnt work then try to copy paste the error or show a photo if youre eligible to put screenshots in the forum.
Thanks
i did what you have mentioned. in the apps it shows now 2 apps one with the old name that is already been installed and the other with the new name which is not yet installed. because of the name change the system thinks it is a new app and also in python it shows all the files under this folder are completely new and asks for a git commit.
and this was my error
Traceback (most recent call last):
File "/home/guhan/odoo/odoo/odoo/registry.py", line 213, in __getitem__
return self.models[model_name]
KeyError: 'asset'
Try doing with a new db if still this happens then i believe there's a mistake youre overseeing as you have created the app with the different name and copied it in you folder structure thus it shows 2 different apps on the odoo apps list you have to delete the old one then only it will stop showing you that if you have 2 different apps with old one and the new one name and then youre error will be solved,
there can be one more possibility that you have used something which shows you error then you need to get me the whole error that is been shown in the terminal/your server app in which your server runs.
also if anything different than the conveyed happens then also tell me in this response i will try my best to solve your problem.
Thanks
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Nov 23
|
1281 | ||
KeyError: 'socket'
Solved
|
|
2
Apr 25
|
7297 | |
|
6
Sep 21
|
23403 | ||
|
4
Apr 19
|
4511 | ||
|
1
Mar 15
|
17550 |