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

I am new into pyhton and OpenERP development. I have already install OpenERP 7 and try to create some basic addon (like web_hello) but I don't have autocomplete for openerp core addons. Already on first line

from osv import osv, fields

My IDE tell me: "Unresolved reference 'osv'" nad "Unresolved reference 'fields'".

I use PyCharm 3.4, but have same problem with Eclipse PyDev.

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

It might be a good idea to point your IDE to the osv directory of your odoo installation (something like odoo/openerp/osv) as an external library. I never worked with PyCharm but in eclipse there is a menuitem like "Pydev - Pythonpath" under your project properties.Pointing this to the appropriate directory might help.

For development ease, it might also be a good idea to make a project of the Odoo branch, so you can easily look up any code in Odoo itself.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 12 17
9476
0
thg 7 15
6061
1
thg 4 15
4981
1
thg 3 15
4700
0
thg 3 15
4179