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

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ย. 15
3002
0
มี.ค. 15
5223
3
มิ.ย. 24
1415
command line install module แก้ไขแล้ว
2
พ.ย. 22
38853
2
มี.ค. 22
9455