Browse Source

💚 fix old imports

pull/261/head
Ivan Yelizariev 5 years ago
parent
commit
1567ff81e4
No known key found for this signature in database GPG Key ID: 93F14FB6A8B57057
  1. 4
      mail_base/controllers/main.py
  2. 2
      mail_base/models.py
  3. 4
      mail_check_immediately/models.py
  4. 10
      mail_fix_553/mail_fix_553.py
  5. 2
      mailgun/models/ir_config_parameter.py
  6. 2
      res_partner_company_messages/models.py
  7. 2
      res_partner_mails_count/models.py
  8. 2
      res_partner_mails_count/tests/test_mail.py

4
mail_base/controllers/main.py

@ -1,5 +1,5 @@
from openerp.addons.bus.controllers.main import BusController
from openerp.http import request
from odoo.addons.bus.controllers.main import BusController
from odoo.http import request
class MailChatController(BusController):

2
mail_base/models.py

@ -1,4 +1,4 @@
from openerp import models
from odoo import models
class MailMessage(models.Model):

4
mail_check_immediately/models.py

@ -1,7 +1,7 @@
import datetime
from openerp import api, exceptions, fields, models, tools
from openerp.tools.translate import _
from odoo import api, exceptions, fields, models, tools
from odoo.tools.translate import _
class FetchMailServer(models.Model):

10
mail_fix_553/mail_fix_553.py

@ -3,11 +3,11 @@ import logging
import re
from email.utils import formataddr
from openerp import SUPERUSER_ID, tools
from openerp.addons.base.ir.ir_mail_server import MailDeliveryException
from openerp.osv import osv
from openerp.tools.safe_eval import safe_eval as eval
from openerp.tools.translate import _
from odoo import SUPERUSER_ID, tools
from odoo.addons.base.ir.ir_mail_server import MailDeliveryException
from odoo.osv import osv
from odoo.tools.safe_eval import safe_eval as eval
from odoo.tools.translate import _
_logger = logging.getLogger(__name__)

2
mailgun/models/ir_config_parameter.py

@ -2,7 +2,7 @@ import logging
import requests
import simplejson
from openerp import api, models
from odoo import api, models
_logger = logging.getLogger(__name__)

2
res_partner_company_messages/models.py

@ -1,4 +1,4 @@
from openerp import models
from odoo import models
class Partner(models.Model):

2
res_partner_mails_count/models.py

@ -1,4 +1,4 @@
from openerp import fields, models
from odoo import fields, models
class ResPartner(models.Model):

2
res_partner_mails_count/tests/test_mail.py

@ -1,4 +1,4 @@
from openerp.tests.common import TransactionCase
from odoo.tests.common import TransactionCase
class TestMessageCount(TransactionCase):

Loading…
Cancel
Save