Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
6 ตอบกลับ
21288 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
How do you install a module? แก้ไขแล้ว
26
ต.ค. 23
148005
2
มี.ค. 15
6401
3
พ.ย. 21
3869
2
มี.ค. 16
5928
1
มี.ค. 24
1461