Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
8142 Lượt xem

I setup an Ubuntu environment and used bzr to get the 3 trunks: addons, server, web

Everything works and the server starts fine.

I then loaded the project in Eclipse and tried to run openerp-server. I got this error (module web: module not found). I then copied the entries (addons_path) in the openerp-server.conf from /etc/ to the conf file in server/install folder. I also created a copy of this file and pasted in server folder, in the hopes that eclipse would pick it up.

But I am still getting the same error. Three questions please:

  1. Which conf file should I add this path for eclipse to use? Where does this file reside?

  2. If I must use a command line switch to specify the web/addons path then how do I do that in eclipse?

  3. There used to be a file with a lot of different variable such as pg_path, rpc, etc. Is that file still around? Maybe that is where I need to make this entry?

Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

There is a "Run/Debug Settings" in "Properties" window when we right click on the file. Then I selected the only item in the list and clicked Edit. Under Arguments tab, I gave "-c /etc/openerp-server.conf".

Thanks

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

The easiest way is to set --addons-path as a command line argument in Eclipse, this way you are sure that it works :

opener-server --addons-path=addons,web/addons

Edit : I don't exactly know where is it in Eclipse, but maybe in "Run Configuration", you might have an "Arguments" (or equivalent) section.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 20
3240
2
thg 1 24
14549
1
thg 2 25
972
0
thg 5 25
1123
2
thg 12 19
2504