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

Hello,

I am trying to adapt my module to V8 by following the guide here https://www.odoo.com/documentation/8.0/howtos/backend.html#wizards, but when I try to import controllers, wizard, etc, I get the error.

ImportError: cannot import name controllers

 

The way I am using to import is:

from . import controllers

from . import models

from . import partner

from . import wizard

Any tip appreciated

아바타
취소

Hello Yakito,

I have the same issue,have you found a solution for your issue?

P.S: Sorry I couldn't post this as a comment,my karma isn't enough to do that ^^;

베스트 답변

Hello Yakito,

in order to import the controllers in the main that is the root directory of ur module " __init__.py " you need to create another " __init__.py " which imports the controller.py inside the directory controllers, the syntax is " from.import controllers "

please note this has to be created inside the controllers directory.

아바타
취소
베스트 답변

Hello,

With the same issue, I have just restarted odoo and the problem has disappeared...

I hope that can help !


아바타
취소
관련 게시물 답글 화면 활동
2
5월 15
7359
1
3월 15
3415
5
7월 20
6650
3
12월 19
8083
2
8월 17
5897