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

Is there a way to install a module from the command line?

Something similar to the update option at command line. --update=UPDATE

--init=INIT This works only when the module is already in the list of the database.

There is a way to update the module list from the command line?

形象
丢弃

Did you specify the database with the -d option?

编写者

yes, the update worked but the init did not.

So if I want to update the modules list for "db_name" it will be : --update=UPDATE -d db_name ? should I switch to the openerp user ? thanks.

最佳答案

if you see --help you can read

-i INIT, --init=INIT
                    install one or more modules (comma-separated list, use
                    "all" for all modules), requires -d

This is all you need. If openERP doesn't install your module, probably there is some bug (dipendences missed for example)

形象
丢弃
编写者

I installed it from the web interface without any problem, the only dependence was product module, I guess I have to try with other modules.

编写者

I found that if I update the module list from the web client, then I can install the module from command line, I will update the question.

The -d parameter is set correctly?

编写者

yes de -d parameter is correct, the problem is that it is a new module and it is not in the database list

It seems -i or --init is not usable when you don't 'update module list' first..

相关帖文 回复 查看 活动
2
11月 15
2985
0
3月 15
5205
3
6月 24
1399
2
11月 22
38785
2
3月 22
9443