Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


ImportError: cannot import name controllers, why?

on 2/13/15, 3:19 PM 2,699 views


I am trying to adapt my module to V8 by following the guide here https://www.odoo.com/documentation/8.0/howtos/backend.html#wizards, but when I try to import controllers, wizard, etc, I get the error.

ImportError: cannot import name controllers


The way I am using to import is:

from . import controllers

from . import models

from . import partner

from . import wizard

Any tip appreciated

On 3/24/16, 7:56 AM

Hello Yakito,

in order to import the controllers in the main that is the root directory of ur module " __init__.py " you need to create another " __init__.py " which imports the controller.py inside the directory controllers, the syntax is " from.import controllers "

please note this has to be created inside the controllers directory.

Alaa Alnajjar
On 2/29/16, 10:46 AM

Hello Yakito,

I have the same issue,have you found a solution for your issue?

P.S: Sorry I couldn't post this as a comment,my karma isn't enough to do that ^^;

On 2/3/16, 11:45 AM


With the same issue, I have just restarted odoo and the problem has disappeared...

I hope that can help !

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


Asked: 2/13/15, 3:19 PM
Seen: 2699 times
Last updated: 3/24/16, 7:56 AM