Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I'm using 7.0-20130514-231031 on Debian GNU/Linux 6.0.7 (squeeze), installed from http:// nightly.openerp.com/7.0/nightly/deb/.
Spent a day on this so far, and cannot figure out what's going on. Lots of searching shows a lot of similar issues with varying fixes that don't work for me.
First, deleting an existing directory of an uninstalled addon in /usr/share/pyshared/openerp/addons does not remove it from the Modules list (going to "Installed Modules" and clearing "Installed" from the filter - which seems like a ridiculously roundabout way to do it IMO) but it will not install. So I'm definitely working with the right directory.
After I click "Install" on the non-existent module (note_pad in this case) it will claim to install. It's not in the Installed Modules list, however, and selecting "Apply Scheduled Upgrades" shows it as ready to install again.
So now at least I know I'm working with the right directory, and there's something wrong with OpenERP reading what's in that directory.
I used the note_pad layout to create a slightly modified version of it and dropped it in the addons directory with a new folder name. No good. I took the "IDEA" addon and made a copy of it. Did a find and replace of all instances of 'idea' and replaced them with 'ideaz' (including filenames). OpenERP refuses to detect that folder no matter what, even though 'idea' works just fine.
I did try
chmod 770 (foldername) -R - no change. Service restarts change nothing, nor do server restarts (not surprising though).
Everything else appears to be working fine. Does anybody have any ideas why this is happening?
Well after a lot o hair pulling..
TO INSTALL A MODULE
Put your module here /usr/lib/python2.7/dist-packages/openerp/addons
Change ownership of the module
sudo chown -R root.root /usr/lib/python2.7/dist-packages/openerp/addons/module_name
Change permissions of the module
sudo chmod 755 /usr/lib/python2.7/dist-packages/openerp/addons/module_name -R
Update the module list 'Settings>Modules>Update Module List>Update'
Go to 'Settings>Modules>Installed' Modules Delete Installed from the filter and search for your module
TO DELETE A MODULE
Go to 'Settings>Modules>Installed' Modules Delete Installed from the filter and search for your module, select your module, select More>Delete
Delete your module
sudo rm -r /usr/lib/python2.7/dist-packages/openerp/addons/module_name
Update the module list 'Settings>Modules>Update' 'Module List>Update'
Go to 'Settings>Modules>Installed' Modules Delete Installed from the filter and search for your module - should not be there.
First, deleting an existing directory of an uninstalled addon ... does not remove it from the Modules list
Removing the module folder will have no effect on what shows up in the list.
When OpenERP is told to 'Update Modules List' it will store a database row for each module it finds on disk. The only way to delete these database entries is to remove them by deleting the module inside OpenERP.
You can delete all entries for uninstalled modules, then update the list. This will update the list to show only those modules on disk (not re-adding those that have been deleted).
The same thing happened to me on my Linux (Ubuntu) Installation. I noticed that I was adding my custom-module to the wrong addons directory. When you install a .deb file, or using source the actual openerp installation lands up here by default:
This is where you are supposed to add your own module and NOT to the openerp source you downloaded initially.
If this is not where your OpenERP is installed, then try finding the actual directory where your openerp installation resides and put your custom module there before you run the server.
Note: This is just one of the possible solution case to your problem.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/16/13, 11:50 AM|
|Seen: 14896 times|
|Last updated: 3/16/15, 8:10 AM|