跳至内容
菜单
此问题已终结
2 回复
16054 查看

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/

最佳答案

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

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

编写者

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

编写者 最佳答案

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/

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

相关帖文 回复 查看 活动
2
12月 22
6753
1
3月 15
15031
1
4月 21
5761
2
4月 15
4607
2
3月 15
10778