Skip to Content
Menú
This question has been flagged
6185 Vistes

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?

Avatar
Descartar

Post the server log and your __init__.py file.

Autor

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

Autor

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.

Autor

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?

Autor

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?

Autor

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?

Related Posts Respostes Vistes Activitat
1
de març 15
4198
2
de març 15
6317
4
de des. 23
28333
0
de març 15
4006
1
de jul. 24
1237