Odoo Help


Error "not a valid addons directory" [Closed]

Mogens Nielsen
on 8/8/13, 10:23 PM 7,543 views

The Question has been closed

Sudhir Arya (ERP Harbor Consulting Services)
on 08/11/2013 07:04:29

I am trying to do something very basic here in removing the "manage database" link on the login page as described elsewhere. However when I try to add the path to my custom addon I get the error "does not seem to be a valid addons directory". So what constitutes a valid addons directory? I followed the description and added a base.xml to the static/src/xml/ folder and loaded the file in the __openerp__.py file so what else do i need prior to adding it to the path?



Sudhir Arya (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
| 6 8 8
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & Co-Owner at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Positive attitude and quick Learner

• Good analytical skill, quick bug and issue tracing and find the solution

• Good knowledge and experience in payment gateway integration with Odoo

• Ready to accept new challenges

• Active Memeber On Stackoverflow 




Sudhir Arya
ERP Harbor Consulting Services
Sudhir Arya (ERP Harbor Consulting Services)
On 8/10/13, 12:20 PM

I think problem is with your given path for addons.

Addons is just like a normal folder which contains one or more modules. Whenever you put all your modules in one folder is called addons.

For example I have some modules named sale_extend, purchase_extend, my_custom_module and I put three of them in one folder named my_addons.

So my_addons is known as addons directory which I will include in my addons path.

In your case make sure the path of the folder you are giving is not a module but it must be a folder/addons which contains one or more module.

Hope this explanation will help you.

I think the last part of your comment might be the reason for the problem. I have purposefully put the addon in the same folder as all other addons in the hope the system would auto-detect it. When it didn’t I used the addons-path switch to add it but passed the folder to the module. It all comes down to operator error I am sure. I don’t have access to the system now but will look at it later. Thx

Mogens Nielsen
on 8/10/13, 1:41 PM
joseph d'souza
On 8/9/13, 1:11 AM

I think you have put xml file wrong way in __openerp__ file you must put all xml in : "update_xml":[],

Exmple for openerp.py file : { "name" : "Products & Pricelists", "version" : "1.1", "author" : "Open", "category" : "Generic Modules/Inventory Control", "depends" : ["base", "account"], "init_xml" : [], "demo_xml" : ["product_demo.xml"], "update_xml" : ["product_data.xml","product_report.xml", "product_wizard.xml","product_view.xml", "pricelist_view.xml"], "installable": True, "active": True }

This file must contain a Python dictionary with the following values:


The (Plain English) name of the module.


The version of the module.


The module description (text).


The author of the module.


The website of the module.


The license of the module (default:GPL-2).


List of modules on which this module depends. The base module must almost always be in the dependencies because some necessary data for the views, reports, ... are in the base module.


List of .xml files to load when the server is launched with the "--init=module" argument. Filepaths must be relative to the directory where the module is. OpenERP XML File Format is detailed in this section.


List of .xml files to load when the server is launched with the "--update=module" launched. Filepaths must be relative to the directory where the module is. OpenERP XML File Format is detailed in this section.


True or False. Determines if the module is installable or not.


True or False (default: False). Determines the modules that are installed on the database creation.
Mogens Nielsen
On 8/9/13, 11:25 PM

I did a restart of the machine and tried running the addons-path again and it completed without errors. Though successful at adding the path I wasn't at getting the server to actually load the addon.

Since this is a lot of trouble for a small change on a test system I have opted for the incorrect approach of modifying the original file instead.

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 8/8/13, 10:23 PM
Seen: 7543 times
Last updated: 11/20/15, 6:34 AM