From 8b4784517937f51561c94188acd85ea90ef72c21 Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Mon, 26 Jun 2017 07:20:25 +0000 Subject: [PATCH] [FIX] import error Error: class MailChatController(openerp.addons.bus.controllers.main.BusController): AttributeError: 'module' object has no attribute 'bus' --- mail_base/README.rst | 2 +- mail_base/controllers/main.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mail_base/README.rst b/mail_base/README.rst index 9e936a2..6cd124a 100644 --- a/mail_base/README.rst +++ b/mail_base/README.rst @@ -25,4 +25,4 @@ Usage instructions: ``_ Changelog: ``_ -Tested on Odoo 9.0 c8cd67c5d98b410cabe0a6efb3347a8a4de731d8 +Tested on Odoo 9.0 ed463864366029f8d4289db831fcdc196fc716cb diff --git a/mail_base/controllers/main.py b/mail_base/controllers/main.py index 8812df9..06f8695 100644 --- a/mail_base/controllers/main.py +++ b/mail_base/controllers/main.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- from openerp.http import request -import openerp +from openerp.addons.bus.controllers.main import BusController -class MailChatController(openerp.addons.bus.controllers.main.BusController): +class MailChatController(BusController): # ----------------------------- # Extends BUS Controller Poll # -----------------------------