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.

0

How to install server-wide module

By
Leo Guggenberger
on 8/19/14, 8:10 AM 3,007 views

Hello,

how can I install an app/module server-wide? I want to use the module dbfilter_from_header and the instruction says "The addon has to be loaded as server-wide module.". How can I do this?

 

Thanks a lot!

Leo

Hello Leo, Combine the options: '-c' to define a path to the configuration file, and '-s' to generate it if it doesn't exist. For any doubts, the source code is your friend: * https://github.com/odoo/odoo/blob/7.0/openerp/tools/config.py#L352 The following getting started link mentions both options but is somehow outdated: * https://doc.odoo.com/trunk/server/01_getting_started/

Marvin Taboada
on 8/19/14, 8:23 PM
1
Wolfgang Taferner
On 8/19/14, 1:47 PM

Hi Leo,
You have to start the server with --load=SERVER_WIDE_MODULES
Comma-separated list of server-wide modules (default=web)

i.e.
via Commandline
./odoo.py -c CONFIGFILE --load=web,web_kanban,dbfilter_from_header

via CONFIGFILE
server_wide_modules=web,web_kanban,dbfilter_from_header

./odoo.py --help shows you all possible parameters/options you could define either in a configfile or directly in command line.

Best regards,
Wolfgang

Hello Wolfgang, just wanted to point that the configuration option documentation is not updated, the default value contains both 'web' and 'web_kanban', both for 7.0 and 8.0: * https://github.com/odoo/odoo/blob/7.0/openerp/tools/config.py#L487 * https://github.com/odoo/odoo/blob/8.0/openerp/tools/config.py#L504

Marvin Taboada
on 8/19/14, 8:08 PM

Hi Marvin, thx for testing and pointing out...corrected the answer

TaPo-IT OG, Wolfgang Taferner
on 8/20/14, 2:49 AM

Hi Wolfgang, thanks for your information. I have a problem that it is still not working on my side. Do you know a option, how I can see (for example logging) which server_wide_modules are loaded? I guess that the server_wide_modules are still not loaded on my side. Thanks a lot! Leo

Leo Guggenberger
on 8/20/14, 1:56 PM

Hi Leo, it is difficult to help you this way about a now not so specific problem anymore...the answer to the specific question should be correct and works on my side...both ways...I would appreciate if you mark it as correct and make a new question to the community about the module you try to get running... Hint: running odoo.py --help in command line gives you a push forward about running odoo with certain options and the code lines posted by Marvin even more...

TaPo-IT OG, Wolfgang Taferner
on 8/22/14, 8:30 AM

Should I execute the commande line, and at the same time modify on the configuration file : /opt/odoo/openerp/tools/config.py (my server path) ?

Yassine TEIMI
on 10/18/15, 11:43 AM
0
Leo Guggenberger
On 8/19/14, 4:02 PM

Hi Wolfgang,

thanks a lot for your information! How does this configuration looks like in the configurationfile? I would like to define the server-wide modules in the configfile instead of direct in the command line.

 

Thanks a lot!

Kind regards,

Leo

Hello Leo, Combine the options: '-c' to define a path to the configuration file, and '-s' to generate it if it doesn't exist. For any doubts, the source code is your friend: * https://github.com/odoo/odoo/blob/7.0/openerp/tools/config.py#L352 The following getting started link mentions both options but is somehow outdated: * https://doc.odoo.com/trunk/server/01_getting_started/

Marvin Taboada
on 8/19/14, 8:27 PM

I edited my answer and it should be somehow complete now...

TaPo-IT OG, Wolfgang Taferner
on 8/20/14, 2:53 AM

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

5 follower(s)

Stats

Asked: 8/19/14, 8:10 AM
Seen: 3007 times
Last updated: 10/21/15, 2:53 AM