Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
6467 Переглядів

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?

Related Posts Відповіді Переглядів Дія
1
бер. 15
4455
2
бер. 15
6607
4
груд. 23
28787
0
бер. 15
4211
2
лип. 25
303