콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
6 답글
20711 화면

I want to install a new module from the command-line. I tried to use -i my_module, but that doesn't work directly.

You'll get: WARNING dbx openerp.modules.loading: invalid module names, ignored: my_module

To avoid this, normally you would start the server, navigate to settings and update module list.

Is there a way to do this from the .openerp-server command? I looked for options in -h, but can't find it.

Any ideas?

아바타
취소
작성자 베스트 답변

Yeah, found some unexplained feature: use -u base or -i base and the module list will get filled with new modules.

I got it by searching for something similar to:

    `pool.get('ir.module.module').update_list(cr, SUPERUSER_ID)`

 

So, ./server/openerp-server --addons-path=youraddonspath/ -u base -i my_new_module

아바타
취소
작성자

it would be nice if parse_config() included some option to for this update_list()

@hs: would you mind to post to complete install command/procedure for us dummies?

작성자

@gunnar: yes, I added an extra line to the answer!

베스트 답변

Yeah, you can use this commande:

cd odoo-server/

./odoo-bin -c /etc/odoo-server.conf -d data_base_name -u module_name

아바타
취소
관련 게시물 답글 화면 활동
26
10월 23
146465
2
3월 15
5786
3
11월 21
3363
2
3월 16
5305
1
3월 24
754