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 the Debian package version
7.0-20130620-231038-1. I'm trying to get a custom module (for testing I used the notebook example from iBCScorp) running, but failed. I first tried to just put the directory in
/usr/share/pyshared/openerp/addons/ (the permission are OK, everything world-readable), restarted the server with
--update=all, but it didn't work. I also tried with putting the module into (again world-readable) path and the additional parameter
--addons-path=/usr/local/src/openerp/testbed/addons/, but again, I can't see the module in the web interface. Is there anything obvious, I forgot? TIA!
OK, it does now work for me! Even, if I'm not sure, whether the solution is correct or not:
I need to put the modules under
plus - and this is the point I missed before:
symlinks for every single file in above directory under the directory
/usr/lib/pymodules/python2.7/openerp/addons/mymodule/__init__.py points to
Thanks to everybody for your help!
sometimes when you are installing OpenERP you can be accident create multiple locations where the openerp directories (server,web.,addons,..) are stored. It sounds like you may be placing your custom module in an addons directory that is different from the one used from the start up script.
I suggest that you first look at the startup script and find which openerp.config file it is pointing to. In this openerp.config file you will find the location of the addons folder being accessed by the openerp server. Finally place your custom module in this addons folder, restart the openerp server and hopefully you will now see your module.
An addtional thing that sometimes confuses people is when searching for your module in the web interface (Settings->Modules->Installed Modules) the default filter only shows modules which have already been installed. Make sure that yuo delete this filter so that you can see all installed and not installed modules.
Maybe one of both of these things can help you.
Paul Pawri Group BV www.pawri.nl
When an OpenERP database is created, the systems looks in the addons path and 'loads' metadata about the modules it finds.
--update=all will look at this metadata and re-load all of the module sources, but won't do anything with 'new' modules.
If you put a module into the addons path, you need to trigger OpenERP to update the module metadata.
Settings --> Modules --> Update Module List
Then, any modules that have been added to the system since the creation of the database, or since the last time the module list was updated, will appear (providing they are valid and can be seen by the OpenERP process).
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: 6/21/13, 4:58 PM|
|Seen: 4367 times|
|Last updated: 3/16/15, 8:10 AM|