Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4609 Zobrazení

I am trying to install OCA/Comptocamp's Analytic Timesheet In Task (timesheet_task) module, but I keep getting this error:

File "/opt/odoo/odoo-server/addons/timesheet_task/__init__.py", line 21, in <module>
from . import project_task
ImportError: cannot import name project_task

File project_task.py is present and file permissions seem to be OK. I've also tried to replace '.' with 'openerp' in __init__.py, but it has no effect. I have no problems installing other modules.

Any ideas?

Avatar
Zrušit
Nejlepší odpověď

Have you tried place this module in /usr/lib/python2.7/dist-packages/openerp/addons/ ?

Maybe you have some issues with addon path .... :)

and check spelling :)

A hahaha

right, your bad :)

from . import  should be in module file not in __init__.py :)

in __init__.py only import module_name


Avatar
Zrušit
Autor Nejlepší odpověď

Edited __init__.py, instead of 'from . import project_task' changed it to 'import project_task' and module finally installed.

Issue resolved.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
dub 21
5775
3
led 24
12131
1
bře 15
4002
1
bře 24
5363
1
pro 20
4317