Pinakin Nayi
Pinakin Nayi

Reputation: 125

Install all modules at once in OpenERP?

How to install all modules in OpenERP at once? At single click it install all modules.

Upvotes: 1

Views: 2615

Answers (3)

ifixthat
ifixthat

Reputation: 6295

Well Pinakin,

Their can be may ways that you can prefer rather being ironic, You have one option as Heroic or you can also use some external shell script which will one go run.

The code can look like this. Save this is Shell script under server folder.

#line to drop some existing db if we have any, You can skip this.
psql -l | grep somedb_name |cut -d \| -f1  | xargs -n1 dropdb

# Create new Db
createdb somedb_name --encoding=Unicode

# install base module. and Stop the server
./openerp-server --addons-path=../../addons/trunk,../../web/trunk/addons/ -d somedb_name --stop-after-init -i base



#Now trigger sql and marke all module to install with demo true.
psql somedb_name -c "UPDATE ir_module_module SET state = 'to install', demo = true ;"

#againstart Server and let all module get insalled and then server will keep running foreve you want.
./openerp-server --addons-path=../../addons/trunk,../../web/trunk/addons/ -u base -d somedb_name

You may Need to chage the some path depending on your code managment on dir.

Upvotes: 3

Atul Arvind
Atul Arvind

Reputation: 16743

While starting the server you can add parameter in the server path like

./openerp-server --addons ../addons/,
                  ../openerp-web/addons/ -i <list of modules> -d <database name>

give list of module name separated by comma, it will install in the module in the given database.

Upvotes: 1

Heroic
Heroic

Reputation: 980

If you use a 7.0 then a good news for you.

-> Go to setting ,click on modules and go to list view of modules.

->Search module that are Not Installed by click on search box.

->click on limit on top right (1-80 of 156) and select unlimited.

->check top left check box that can check all the check box of all module in list view.

-> Now click on more button and then click Module Immediate installed.

-> be Patience this will take some time to installed all module but it surly installed all modules.

Upvotes: 6

Related Questions