Browse Source

💚 fix old imports

pull/259/head
Ivan Yelizariev 5 years ago
parent
commit
fee3cd45b1
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,8 +1,8 @@
# Copyright 2017 mikaelh <https://github.com/mikaelh> # Copyright 2017 mikaelh <https://github.com/mikaelh>
# Copyright 2017-2019 Ivan Yelizariev <https://it-projects.info/team/yelizariev> # Copyright 2017-2019 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
# License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html) # License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html)
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): class MailChatController(BusController):

2
mail_base/models.py

@ -2,7 +2,7 @@
# Copyright 2017 Ivan Yelizariev <https://it-projects.info/team/yelizariev> # Copyright 2017 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
# License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html) # License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html)
from openerp import api, models
from odoo import api, models
class MailMessage(models.Model): class MailMessage(models.Model):

4
mail_check_immediately/models.py

@ -1,7 +1,7 @@
import datetime 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): class FetchMailServer(models.Model):

10
mail_fix_553/mail_fix_553.py

@ -3,11 +3,11 @@ import logging
import re import re
from email.utils import formataddr 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__) _logger = logging.getLogger(__name__)

2
mailgun/models/ir_config_parameter.py

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

2
res_partner_company_messages/models.py

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

2
res_partner_mails_count/models.py

@ -1,4 +1,4 @@
from openerp import api, fields, models
from odoo import api, fields, models
class ResPartner(models.Model): 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): class TestMessageCount(TransactionCase):

Loading…
Cancel
Save