콘텐츠로 건너뛰기
Odoo 메뉴
  • 로그인
  • 무료 체험하기
  • 앱
    재무 관리
    • 회계
    • 청구서 관리
    • 비용 관리
    • 스프레드시트 (BI)
    • 문서
    • 전자 서명
    판매
    • CRM
    • 판매
    • POS 스토어
    • POS 레스토랑
    • 구독
    • 렌탈
    웹사이트
    • 웹사이트 빌더
    • 이커머스
    • 블로그
    • 포럼
    • 실시간 채팅
    • 온라인 학습 관리
    공급망
    • 재고 관리
    • 제조 관리
    • 제품 수명주기 관리 (PLM)
    • 매입
    • 유지관리
    • 품질
    인적자원 관리
    • 직원
    • 채용
    • 휴가 관리
    • 인사 평가
    • 인재 추천
    • 차량 관리
    마케팅
    • 소셜 마케팅
    • 이메일 마케팅
    • SMS 마케팅
    • 행사
    • 마케팅 자동화
    • 설문 조사
    서비스
    • 프로젝트
    • 작업 기록
    • 현장 서비스
    • 헬프데스크
    • 일정 관리
    • 일정 예약
    생산성
    • 메일 및 채팅
    • 전자 결재
    • IoT
    • VoIP
    • 지식 센터
    • WhatsApp
    타사 앱 Odoo 스튜디오 Odoo 클라우드 플랫폼
  • 인더스트리
    리테일
    • 서점
    • 의류 매장
    • 가구점
    • 식료품점
    • 철물점
    • 장난감 가게
    식음료 & 숙박업
    • 바 & 펍
    • 레스토랑
    • 패스트푸드
    • 게스트 하우스
    • 음료 유통업체
    • 호텔
    부동산
    • 부동산 중개업체
    • 건축 회사
    • 건설
    • 부동산 관리
    • 가드닝
    • 부동산 소유자 협회
    컨설팅
    • 회계 법인
    • Odoo 파트너
    • 마케팅 대행사
    • 법률 사무소
    • 인재 영입
    • 감사 및 인증
    제조 관리
    • 텍스타일
    • 메탈
    • 가구
    • 푸드
    • 양조장
    • 기업용 선물
    건강 & 피트니스
    • 스포츠 클럽
    • 안경점
    • 피트니스 센터
    • 웰니스 전문가
    • 약국
    • 미용실
    사업
    • 핸디맨
    • IT 하드웨어 및 지원 서비스
    • 태양 에너지 시스템
    • 제화업체
    • 클리닝 서비스
    • HVAC 서비스
    기타
    • 비영리 단체
    • 환경 에이전시
    • 광고판 임대
    • 사진
    • 자전거 임대
    • 소프트웨어 리셀러
    전체 인더스트리 찾아보기
  • 커뮤니티
    학습
    • 튜토리얼
    • 문서
    • 인증
    • 훈련
    • 블로그
    • 팟캐스트
    교육 역량 강화
    • 교육 프로그램
    • Scale-Up! 경영관리 게임
    • Odoo에 방문해보세요
    소프트웨어 신청
    • 다운로드
    • 버전 살펴보기
    • 릴리즈 내역
    협업
    • Github
    • 포럼
    • 행사
    • 번역
    • 파트너 등록
    • 파트너 대상 서비스
    • 회계 법인 정보 등록
    서비스 신청
    • 파트너 검색
    • 회계사 검색
    • 전문 상담 예약
    • 구현 서비스
    • 고객 정보
    • 고객 지원
    • 업그레이드
    Github 유튜브 트위터 링크드인 인스타그램 페이스북 스포티파이
    +1 (650) 691-3277
    데모 예약하기
  • 요금제
  • 고객 지원

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • 회계
  • 재고 관리
  • PoS
  • 프로젝트
  • MRP
All apps
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
모든 게시물 사용자 배지
태그 (모두 보기)
odoo accounting v14 pos v15
게시판 정보
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
모든 게시물 사용자 배지
태그 (모두 보기)
odoo accounting v14 pos v15
게시판 정보
도움말

Can't install any community module on openerp v7 "Import Error: No module named wizard"

구독

이 게시물에 활동이 있으면 알림 받기

신고된 질문입니다
wizardmodulev7named
6 답글
18261 화면
아바타
Micha Wagner

Hi,

I would like to install a e-banking module. I'm using openERP v7.0 on a virtual ubuntu server v12. Now if I try to install any community module from apps.openerp.com, I've get the following error:

> OpenERP Server Error
> 
> Client Traceback (most recent call
> last):   File
> "/usr/lib/pymodules/python2.7/openerp/addons/web/http.py",
> line 203, in dispatch
>     response["result"] = method(self, **self.params)   File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py",
> line 1133, in call_button
>     action = self._call_kw(req, model, method, args, {})   File
> "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py",
> line 1121, in _call_kw
>     return getattr(req.session.model(model),
> method)(*args, **kwargs)   File
> "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py",
> line 43, in proxy
>     result = self.proxy.execute_kw(self.session._db,
> self.session._uid,
> self.session._password, self.model,
> method, args, kw)   File
> "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py",
> line 31, in proxy_method
>     result = self.session.send(self.service_name,
> method, *args)   File
> "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py",
> line 104, in send
>     raise xmlrpclib.Fault(openerp.tools.ustr(e),
> formatted_info)
> 
> 
> Server Traceback (most recent call
> last):   File
> "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py",
> line 90, in send
>     return openerp.netsvc.dispatch_rpc(service_name,
> method, args)   File
> "/usr/lib/pymodules/python2.7/openerp/netsvc.py",
> line 293, in dispatch_rpc
>     result = ExportService.getService(service_name).dispatch(method,
> params)   File
> "/usr/lib/pymodules/python2.7/openerp/service/web_services.py",
> line 626, in dispatch
>     res = fn(db, uid, *params)   File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py",
> line 188, in execute_kw
>     return self.execute(db, uid, obj, method, *args, **kw or {})   File
> "/usr/lib/pymodules/python2.7/openerp/osv/osv.py",
> line 131, in wrapper
>     return f(self, dbname, *args, **kwargs)   File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py",
> line 197, in execute
>     res = self.execute_cr(cr, uid, obj, method, *args, **kw)   File
> "/usr/lib/pymodules/python2.7/openerp/osv/osv.py",
> line 185, in execute_cr
>     return getattr(object, method)(cr, uid, *args, **kw)   File
> "/usr/lib/pymodules/python2.7/openerp/addons/base/module/module.py",
> line 424, in button_immediate_install
>     return self._button_immediate_function(cr,
> uid, ids, self.button_install,
> context=context)   File
> "/usr/lib/pymodules/python2.7/openerp/addons/base/module/module.py",
> line 475, in
> _button_immediate_function
>     _, pool = pooler.restart_pool(cr.dbname,
> update_module=True)   File
> "/usr/lib/pymodules/python2.7/openerp/pooler.py",
> line 39, in restart_pool
>     registry = RegistryManager.new(db_name,
> force_demo, status, update_module)  
> File
> "/usr/lib/pymodules/python2.7/openerp/modules/registry.py",
> line 218, in new
>     openerp.modules.load_modules(registry.db,
> force_demo, status, update_module)  
> File
> "/usr/lib/pymodules/python2.7/openerp/modules/loading.py",
> line 348, in load_modules
>     processed = load_marked_modules(cr, graph,
> states_to_load, force, status, report,
> loaded_modules, update_module)   File
> "/usr/lib/pymodules/python2.7/openerp/modules/loading.py",
> line 259, in load_marked_modules
>     loaded, processed = load_module_graph(cr, graph,
> progressdict, report=report,
> skip_modules=loaded_modules,
> perform_checks=perform_checks)   File
> "/usr/lib/pymodules/python2.7/openerp/modules/loading.py",
> line 162, in load_module_graph
>     load_openerp_module(package.name)   File
> "/usr/lib/pymodules/python2.7/openerp/modules/module.py",
> line 405, in load_openerp_module
>     __import__('openerp.addons.' + module_name)   File
> "/usr/lib/pymodules/python2.7/openerp/modules/module.py",
> line 133, in load_module
>     mod = imp.load_module('openerp.addons.' +
> module_part, f, path, descr)   File
> "/usr/lib/pymodules/python2.7/openerp/addons/account_banking/__init__.py",
> line 29, in <module>
>     import banking_import_transaction   File
> "/usr/lib/pymodules/python2.7/openerp/addons/account_banking/banking_import_transaction.py",
> line 36, in <module>
>     from account_banking import sepa   File
> "/usr/lib/pymodules/python2.7/openerp/addons/account_banking/account_banking.py",
> line 64, in <module>
>     from wizard.banktools import get_or_create_bank   File
> "/usr/lib/pymodules/python2.7/openerp/addons/account_banking/wizard/__init__.py",
> line 22, in <module>
>     import bank_payment_manual   File "/usr/lib/pymodules/python2.7/openerp/addons/account_banking/wizard/bank_payment_manual.py",
> line 27, in <module>
>     import wizard ImportError: No module named wizard

I've tried to install at last 6 different community modules. I always get the same error: "ImportError: No module named wizard". Well the community modules are designed for openERP v6.1, but almost all community modules only support v6.1. They don't support v7. My question is: Is this error appearing because the modules only support v6.1 or is there an other problem existing? Can anybody help me to fix it? Thanks a lot!

Regards

Michael

5
아바타
취소
아바타
Sudhir Arya (ERP Harbor Consulting Services)
베스트 답변

This could resolve your issue. ImportError: No module named wizard

You can see difference between Interface Wizard and Memory Wizard.

You can follow the given conversion steps for conversion:


Convert wizard.interface class into osv.osv_memeory class:

class wizard_class(wizard.interface):

Convert it like this:

class wizard_class(osv.osv_memeory):

and write _columns and methods inside this class.


Convert views from py to xml:

my_form = <?xml version="1.0"?>
<form string="Category Summary">
    <group colspan="4">
        <button name="check" type="object"/>
    </group>
</form>

Convert fields into osv.fields inside _columns:

my_fields = { 'partner_id': {'string': 'Partner', 'type': 'many2one', 'relation':'res.partner',}, }

Convert it like this:

_columns = {
    'partner_id': fields.many2one('res.partner', 'Partner'),
}

If there is any methods, put them inside the class.


Understand the flow first then remove following code from interface py:

states = {
    'init': {
        'actions': [],
        'result': {'type':'form', 'arch':my_form, 'fields':my_fields, 'state':[
            ('end','Cancel'), ('check','Print')]}
    },
    'check': {
        'actions': [],
        'result': {'type':'print', 'report': 'report_name',  'state':'end'}
    },
}

Here ('check','Print') is called from <button="check" which then call given report.

This are the rough steps, not standard steps. I follow this steps for conversion.

Hope this will help you.

Thank you.

5
아바타
취소
Micha Wagner
작성자

I've seen this post, but I don't understand, how I should convert it to "osv.TransientModel". And why TransientModel.. I don't get it..

Sudhir Arya (ERP Harbor Consulting Services)

In short you have to convert it into osv.osv_memeory wizard.

Micha Wagner
작성자

I hope you mean I should just replace the occurence "wizard.instance" within the code with "osv.osv_memory" - but I think, you mean something more complicated... I'll try

Sudhir Arya (ERP Harbor Consulting Services)

In v7 osv.osv_memory is deprecated and you should use osv.TransientModel instead.

charlesraj

hi . i will make changes that mentioned above. But the same error "wizard_cheque_state_process.py", line 21, in <module> ImportError: No module named wizard" is appeared while trying to install the loan module.

아바타
Micha Wagner
작성자 베스트 답변

Sudhir Arya: In your linked thread you explained, it could be fixed like following:

I guess there might be a wizard.interface somewhere in your module.

OpenERP v5, v6 and v6.1 supports wizard.interface but v7 does not support it anymore.

You have convert those interface wizards into osv.TransientModel, after that your module will be installed in version-7.

But how do I convert it to osv.TransientModel? Inside my account banking module I've found one occurence of wizard.interface:

import wizard import pooler

class payment_manual(wizard.interface): def _action_set_state_sent(self, cursor, uid, data, context):

How do I convert it to the transien model thing?

Thanks!

0
아바타
취소
아바타
Laoyumi
베스트 답변

I managed to install "product_variant_multi" on V7!

Found that there is another "addons" directory under server, in my case "/opt/openerp/server/openerp/addons". Copied the "product_variant_multi.zip" in there and then logged in as "admin" went to "Settings - Update Modules List".

After this it listed under "Installed Modules" with filter removed.

PS: This method worked also with "product_variant_configurator.zip" but failed so far with "sale_product_multistep_configurator.zip". Do not know why!

0
아바타
취소
Micha Wagner
작성자

Strange... I only find a directory called psa/ - there is no openerp. But if I read the comments about product_variant_configurator in http://apps.openerp.com it is normal that it works on v7. Although, there are some error appearing (look at the errors), but thx.

아바타
Med Said BARA
베스트 답변

The error you get is because you are using account_banking from V6.1 or V6.0.

The solution is to use the right module version for V7.0

0
아바타
취소
아바타
Francesco OpenCode
베스트 답변

Are you passing the web/addons path to your OpenERP installation? If you run OpenERP by command line, you can do something like this:

python server/openerp-server --log-level=debug --addons-path=/home/user/openerp/addons/,/home/user/openerp/web/addons/, -r openerp_user -w openerp_password

note: /home/user/openerp/web/addons/

0
아바타
취소
Micha Wagner
작성자

Well, I've put the module inside /usr/lib/pymodules/python2.7/openerp/addons like I've read on several posts inside the forum. Is it important to use /home/user/openerp/addons/ ? So I'm not explicitly passing the path. There is no need to because /usr/lib/pymodules/python2.7/openerp/addons is default.

아바타
Cyrus Waithaka
베스트 답변

Check your addons folder to see if you have wizard.zip. Or you could remove any .zip folders that you have added to the addons folder lately.

0
아바타
취소
토론이 재미있으신가요? 직접 참여해보세요!

지금 바로 가입하여 독점 서비스를 이용해보고 특별한 커뮤니티와 소통하세요!

가입
관련 게시물 답글 화면 활동
Force wizard dimension 해결 완료
wizard v7
아바타
1
4월 24
9349
Form not updating on button action
wizard v7
아바타
아바타
1
3월 15
6805
Fetch values from dynamic view of a wizard
wizard v7
아바타
아바타
아바타
2
3월 15
5766
Resource for creating module in openerp v7
module v7
아바타
아바타
1
3월 15
5227
new module doesn't show in module list? 해결 완료
module v7
아바타
아바타
아바타
3
12월 23
30827
커뮤니티
  • 튜토리얼
  • 문서
  • 포럼
오픈 소스
  • 다운로드
  • Github
  • Runbot
  • 번역
서비스
  • Odoo.sh 호스팅
  • 고객 지원
  • 업그레이드
  • 맞춤 개발
  • 학습
  • 회계사 검색
  • 파트너 검색
  • 파트너 등록
회사 소개
  • 회사 소개
  • 브랜드 자산
  • 상담 문의
  • 인재 채용
  • 행사
  • 팟캐스트
  • 블로그
  • 고객 사례
  • 법적고지 • 개인정보
  • 보안
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo는 CRM, 이커머스, 회계, 재고, POS, 프로젝트 관리 등 기업의 모든 요구 사항을 충족하도록 설계된 오픈 소스 기반의 통합 비즈니스 앱 제품군입니다.

Odoo의 간편한 UI와 완벽하게 통합된 기능을 직접 확인해 보세요.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now