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

I created the folder in training openerp / addons and 4 file (init, openerp, training.py, and XML), and when I run the server with the camande "./openerp-server - addons-path = .. / openerp / addons "  it does not work,
there is a solution?

Thanx

아바타
취소
작성자

it s odoo 8

베스트 답변

Hello Othmane 

You need to give addons path like below.

python odoo.py --addons addons

Because you have put your module inside odoo/openerp/addons so from above code you can get all modules.

But if you have a diffrent modules path so you have to do :

if your module is in folder_a/modules

python odoo.py --addons addons,../../folder_a/modules

Hope that this answer will help you.

Please don't hesitate to ask any question regarding this.

Thank You

아바타
취소
베스트 답변

Make sure that the addons directory you created is also readable by the odoo (openerp) server. On unix system you can do this by:

chown -R odoo:odoo /opt/odoo/custom/addons

replace the odoo:odoo with the user and group information the server is running under. Also adjust the path to yours.
 

 

 

 

아바타
취소
베스트 답변

try this:

python odoo-bin --addons=addons,"/home/odoo-dev/odoo/local-addons/x"

where x is the directory containing one module at least (by scaffold execution)

option --save for save changes on /debian/odoo.conf file

it's works for me on odoo 10 

I hope helps you 

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

Thank you Kazim, but it doesnt work :)

 

아바타
취소
작성자

odoo.py --addons addons work, but when i use python odoo.py --addons addons,../../folder_a/modules dont work, and this is the error Usage: odoo.py [options] odoo.py: error: option --addons-path: no such directory: '../addons/Mylibrary2'

Right now your module is in odoo/openerp/addons directory so you just need to put "odoo.py --addons addons" and update module list with technical setting.

작성자

ok i will see :)