コンテンツへスキップ
メニュー
この質問にフラグが付けられました
6466 ビュー

first i create a module in eclipse using addons-new-PyDevPackage then in allocation i got to file-peydev module then i create a _openerp_.py and i write this code

Created on Nov 27, 2013

{ 
'name' : "Allocation",
'version': "1.0",
'author': "abc",
'category': "Tools",
'depends' : ["asset"],
'data': [
       'allocation_view.xml',
        ],
        'demo':[
             'allocation_demo.xml
             ],
             'installable': True,
 }

@author: abc '''

then when i import this in init file like impoort Allocation it shows me error

Description Resource Path Location Type Unresolved import: Allocation __init__.py

how i import?

アバター
破棄

Post the server log and your __init__.py file.

著作者

when i open _init_py.file and write import Allocation then it shows me error and server log means?

著作者

pleae tell me i really need help about this :(

Do you have a file named Allocation.py in your module? There is single quote (') missing in your __openerp__.py file's 'demo':[ 'allocation_demo.xml ], After allocation_demo.xml, correct it also.

著作者

yes i have a file allocation.py but i havent code in it

Ok. There is only one line in your __init__.py file and which is import allocation. Is "allocation.py" is name of your python file? In init file we import the python files we have created in our module.

Your init file contains import allocation and the file name is allocation.py right? Are the spelling of file allocation is same in init.py? Also let me know the directory structure, is your module is in addons folder?

著作者

yes spellin are correct and when i create modulue in the director of addons the modulue also their in addons folder

Are you running the server on ubuntu? if yes then what is the error shown in the terminal?

著作者

i am using windows 7

Check the log file for the error description, the log file is in the server folder of your openerp installation. http://forum.openerp.com/forum/topic24127.html

is it import Allocation or import allocation that you have written?

関連投稿 返信 ビュー 活動
1
3月 15
4455
2
3月 15
6607
4
12月 23
28787
0
3月 15
4211
2
7月 25
303