Odoo Help

Welcome!

This community 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.

2

How to install customize modules automatically in OpenERP V7.

By
santoshnayak
on 10/9/13, 10:55 AM 8,508 views

I'm writing Restful API on Openerp v7. I'm going to create one Database for one user.I want to install Account, Sale and Purchase modules at the time new Database creation. I tried by modifying __openerp__.py in each module, changing auto_install=True, and 'web' module to depend on Account, Sale and Purchase, still it's not installing. Please help me to get out of this problem..! Thanks...

2

IBS

--IBS--
1302
| 4 5 8
Tétouan, Morocco
--IBS--

For more informations about IBS, please visit our website at www.ibs-na.com.

For a specific questions, collaboration or help, please send us an email to support@ibs-na.com

IBS
On 10/9/13, 11:11 AM

Just create a new basic module that depends on all the modules you want to install and then make this module install itself automatically or do it manually.

You can set the dependencies in the __openerp__.py file

Note: Make sure to restart your server so that the changes take effect.

Update: auto_install doesn't do what its name implies, check this question

So it appears that you will have to manually install that custom module.

Thanks Karim for your suggestion. I tried what you suggest, but it's not installing account module. I tried 1) Modified base module's __openerp__.py file, depends on account, it showed Unmet dependency. 2) Modified web module's __openerp__.py file, depends on account, it is not working. 3) create one own module, depends on account and made auto install, it is also not installing. can you please give one example for installing account module.

santoshnayak
on 10/10/13, 8:27 AM

Thank you so much Karim. Finally i got this :)

santoshnayak
on 10/10/13, 11:37 AM

You are welcome :-)

IBS
on 10/10/13, 12:08 PM
0
Michael Telahun
On 6/5/14, 9:17 AM

To install a module automatically when the database is created you have to set:

"auto_install": True

in the __openerp__.py file for the module and all its dependencies.

This means that you have to set auto_install on the dependencies of its dependencies, as well.

0
Bilal Ghayad
On 1/17/15, 1:07 PM

Using "auto_install" alone did not work for me. What i did was install the modules when openerp is started using command line options. From command-line I set the --addons_path and then use "-i MyModulesName -d DatabaseName".

 

What is this command line? You typed it manually or added somehwere?

Regards

Bilal

0
riess82
On 8/23/14, 4:03 AM

Using "auto_install" alone did not work for me. What i did was install the modules when openerp is started using command line options. From command-line I set the --addons_path and then use "-i MyModulesName -d DatabaseName".

DatabaseName can be "all" to install in all databases.

The same can be used in the startup-daemon, automatically installing for new databases.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 10/9/13, 10:55 AM
Seen: 8508 times
Last updated: 3/16/15, 8:10 AM