Skip to Content
Menu
This question has been flagged
2 Replies
14679 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

Avatar
Discard

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/

Best Answer

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

Avatar
Discard

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

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

Author

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

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

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) ?

Author Best Answer

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

Avatar
Discard

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/

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

Related Posts Replies Views Activity
2
Dec 22
5749
1
Mar 15
13935
1
Apr 21
4591
2
Apr 15
3539
2
Mar 15
9673