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

Hi,

i'm trying to connect backend odoo to development reasons on pycharm, I created new VENV and I already installed odoo on my device.  I copied the odoo files and add it to my project and when I run it from pycharm it gives me many errors,.

please any one knows what the point is? help me,.

btw import odoo in odoo-bin fike says no module named odoo....

so finally how can I create a new project for odoo 11 in pycharm with all configuration steps ,,

and what is the command for scaffold for odoo11 on windows ? I'm trying to use it also .

many thanks,

Ảnh đại diện
Huỷ bỏ

I don't know how to do in Odoo11 but in Odoo10 you need to add the server folder as New project. So in my install "C:\Program Files (x86)\Odoo 10.0\server". I develop the custom modules in "C:\Program Files (x86)\Odoo 10.0\server\odoo\customaddons" and have no errors.

For using scaffold you need to open cmd, go to the server folder and run

odoo-bin.exe scaffold your_module_namel ./odoo/customaddons

But as I said this is for Odoo10, I don't know if it works for Odoo11.

Tác giả

thanks but its not working

I got this :

'odoo-bin.exe' is not recognized as an internal or external command,

operable program or batch file.

you need to be in the dir that has this exe file(odoo-bin.exe)... as I said for me it's the server dir. so you need to go to the dir with the "cd" command (cd Program Files (x86)\Odoo 10.0\server) and then use it! I don't know if the folder structure changed from odoo10 to odoo11. And don't forget that I'm using my install dir, yours can be different. If it isn't in the server dir look at other folders

Câu trả lời hay nhất

https://www.youtube.com/watch?v=tGSNUgqZkYU&t=203s

this will help you do it a very solid way.

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

@samo arko

thanks but its not working 

 I got this :

'odoo-bin.exe' is not recognized as an internal or external command,
operable program or batch file.

Ảnh đại diện
Huỷ bỏ

As I said above you need to be in the dir that has the odoo-bin.exe else you get the error message you posted.

Bài viết liên quan Trả lời Lượt xem Hoạt động
5
thg 1 18
10288
3
thg 5 21
4593
4
thg 2 24
8053
1
thg 4 18
13103
2
thg 3 18
6775