Skip to Content
Menu
This question has been flagged
2 Replies
2406 Views

I wanted to make some changes to my odoo setup after more than a year of use. I'm trying to install new addons but when I place some of them in the addons folder the server stops working properly. The webpage still loads but some images are missing and when I switch to developer mode the web page is completely unusable. All this happens without installing the addon inside odoo only by placing it on the folder.

I'm not sure if its a problem from the addon as I have the same problem with different addons that I've tried to place individually to find which of them was causing the problem and I have more than one that when palced individually produces the same result. 

I've checked the log files but I can't find any error displayed, even when using log-handler in DEBUG mode I can't see why it's failing.

I also found that when I remove the plugin from the folder and restart the service (I'm on Ubuntu 16) odoo works fine again.

Any idea on how to find the problem?

Thanks

Avatar
Discard
Author Best Answer

Hi, thanks for your answer. The version for the modules is 11.0.1 the same on my server.

I've checked the files from . import models but I dont' know what to look for, I've also been checking the files inside the models folder but I can't find anything as I don't know what I should be looking for in the init file. 

I've also tried a new clean install on Ubuntu 18 with the latest version from the repository and without any addon installed and I have the same problem when placing it on the folder.

Avatar
Discard
Best Answer

Hi,

So the issues are coming from the custom module that you have placed inside the custom addons path. Make sure that the module is of the same odoo version, suppose if you place odoo9 or odoo10 module in odoo11 or 12, you will get such issues. 


Also you can check the init file and see how import is done. 

In V10 and below : import models
In v11 and above: from . import models


Thanks

Avatar
Discard
Author

Hi, thanks for your answer. The version for the modules is 11.0.1 the same on my server.

I've checked the files from . import models but I dont' know what to look for, I've also been checking the files inside the models folder but I can't find anything as I don't know what I should be looking for in the init file.

I've also tried a new clean install on Ubuntu 18 with the latest version from the repository and without any addon installed and I have the same problem when placing it on the folder.

Related Posts Replies Views Activity
2
Jul 19
5238
0
Mar 18
1972
0
Dec 18
2952
2
Apr 22
4440
3
May 18
5352