Ivan Yelizariev
5 years ago
No known key found for this signature in database
GPG Key ID: 93F14FB6A8B57057
8 changed files with
14 additions and
14 deletions
-
mail_base/controllers/main.py
-
mail_base/models.py
-
mail_check_immediately/models.py
-
mail_fix_553/mail_fix_553.py
-
mailgun/models/ir_config_parameter.py
-
res_partner_company_messages/models.py
-
res_partner_mails_count/models.py
-
res_partner_mails_count/tests/test_mail.py
|
|
@ -1,8 +1,8 @@ |
|
|
|
# Copyright 2017 mikaelh <https://github.com/mikaelh> |
|
|
|
# Copyright 2017-2019 Ivan Yelizariev <https://it-projects.info/team/yelizariev> |
|
|
|
# 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): |
|
|
|
|
|
@ -2,7 +2,7 @@ |
|
|
|
# Copyright 2017 Ivan Yelizariev <https://it-projects.info/team/yelizariev> |
|
|
|
# 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): |
|
|
|
|
|
@ -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): |
|
|
|
|
|
@ -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,7 +2,7 @@ import logging |
|
|
|
|
|
|
|
import requests |
|
|
|
import simplejson |
|
|
|
from openerp import api, models |
|
|
|
from odoo import api, models |
|
|
|
|
|
|
|
_logger = logging.getLogger(__name__) |
|
|
|
|
|
|
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
from openerp import api, models |
|
|
|
from odoo import api, models |
|
|
|
|
|
|
|
|
|
|
|
class Partner(models.Model): |
|
|
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
from openerp import api, fields, models |
|
|
|
from odoo import api, fields, models |
|
|
|
|
|
|
|
|
|
|
|
class ResPartner(models.Model): |
|
|
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
from openerp.tests.common import TransactionCase |
|
|
|
from odoo.tests.common import TransactionCase |
|
|
|
|
|
|
|
|
|
|
|
class TestMessageCount(TransactionCase): |
|
|
|