diff --git a/mail_all/tests/__init__.py b/mail_all/tests/__init__.py index 11b0967..cadc614 100644 --- a/mail_all/tests/__init__.py +++ b/mail_all/tests/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import test_js +from . import test_js diff --git a/mail_all/tests/test_js.py b/mail_all/tests/test_js.py index 993913d..6259570 100644 --- a/mail_all/tests/test_js.py +++ b/mail_all/tests/test_js.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- import openerp.tests diff --git a/mail_archives/tests/__init__.py b/mail_archives/tests/__init__.py index 11b0967..cadc614 100644 --- a/mail_archives/tests/__init__.py +++ b/mail_archives/tests/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import test_js +from . import test_js diff --git a/mail_archives/tests/test_js.py b/mail_archives/tests/test_js.py index 46f9b3a..af6d4ce 100644 --- a/mail_archives/tests/test_js.py +++ b/mail_archives/tests/test_js.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- import openerp.tests diff --git a/mail_base/README.rst b/mail_base/README.rst index 5ee7ab2..0aa46ac 100644 --- a/mail_base/README.rst +++ b/mail_base/README.rst @@ -14,6 +14,6 @@ Further information ------------------- Due to odoo restrictions, module makes mail initialization again. That is browser loads emoji and other chat data twice. This is the only way to make Mail feature extendable. -One can say, that the module do this todo from `addons/mail/static/src/js/chat_manager.js `_ +One can say, that the module do this todo from `addons/mail/static/src/js/chat_manager.js `__ // to do: move this to mail.utils diff --git a/mail_base/__init__.py b/mail_base/__init__.py index c7b5ac7..cde864b 100644 --- a/mail_base/__init__.py +++ b/mail_base/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import models +from . import models diff --git a/mail_base/static/src/js/base.js b/mail_base/static/src/js/base.js index a9816f1..53c9f0e 100644 --- a/mail_base/static/src/js/base.js +++ b/mail_base/static/src/js/base.js @@ -287,7 +287,7 @@ var MailTools = core.Class.extend({ return { is_starred: chat_manager.mail_tools.property_descr("channel_starred", msg, chat_manager.mail_tools), is_needaction: chat_manager.mail_tools.property_descr("channel_inbox", msg, chat_manager.mail_tools) - } + }; }, set_channel_flags: function(data, msg){ @@ -297,7 +297,7 @@ var MailTools = core.Class.extend({ if (_.contains(data.starred_partner_ids, session.partner_id)) { msg.is_starred = true; } - return msg + return msg; }, get_channel_array: function(msg){ @@ -393,7 +393,7 @@ var MailTools = core.Class.extend({ } else { channel = chat_manager.mail_tools.make_channel(data, options); channels.push(channel); - channels = _.sortBy(channels, function (channel) { return _.isString(channel.name) ? channel.name.toLowerCase() : '' }); + channels = _.sortBy(channels, function (channel) { return _.isString(channel.name) ? channel.name.toLowerCase() : ''; }); if (!options.silent) { chat_manager.bus.trigger("new_channel", channel); } @@ -786,10 +786,10 @@ var cls = new MailTools(); chat_manager.mail_tools = cls; // we add this function this way in order to make them extendable via MailTools.include({...}) chat_manager.make_message = function(){ - return chat_manager.mail_tools.make_message.apply(chat_manager.mail_tools, arguments) + return chat_manager.mail_tools.make_message.apply(chat_manager.mail_tools, arguments); }; chat_manager.make_channel = function(){ - return chat_manager.mail_tools.make_channel.apply(chat_manager.mail_tools, arguments) + return chat_manager.mail_tools.make_channel.apply(chat_manager.mail_tools, arguments); }; chat_manager.post_message = function (data, options) { options = options || {}; @@ -1120,7 +1120,7 @@ chat_manager.search_partner = function (search_val, limit) { }); }; chat_manager.send_native_notification = function(){ - return chat_manager.mail_tools.send_native_notification.apply(chat_manager.mail_tools, arguments) + return chat_manager.mail_tools.send_native_notification.apply(chat_manager.mail_tools, arguments); }; chat_manager.bus.on('client_action_open', null, function (open) { client_action_open = open; @@ -1162,7 +1162,7 @@ function init(){ // unsubscribe and then subscribe to the event, to avoid duplication of new messages bus.off('notification'); bus.on('notification', null, function(){ - chat_manager.mail_tools.on_notification.apply(chat_manager.mail_tools, arguments) + chat_manager.mail_tools.on_notification.apply(chat_manager.mail_tools, arguments); }); return $.when(load_menu_id, load_action_id, load_channels, load_emojis).then(function (menu_id, action_id) { diff --git a/mail_fix_header_from/__openerp__.py b/mail_fix_header_from/__openerp__.py index 150fa4b..8425119 100644 --- a/mail_fix_header_from/__openerp__.py +++ b/mail_fix_header_from/__openerp__.py @@ -10,8 +10,8 @@ Obsolete in odoo 8.0 since Sep 10, 2014 https://github.com/odoo/odoo/commit/f2cf6ced17d3477b8858e3a8f955a42cc8a629ff . You can install this module, if you use older version. """, "depends": ["base"], - #"init_xml" : [], - #"update_xml" : [], - #"active": True, + # "init_xml" : [], + # "update_xml" : [], + # "active": True, 'installable': False } diff --git a/mail_move_message/controllers/main.py b/mail_move_message/controllers/main.py index 94a6634..314a745 100644 --- a/mail_move_message/controllers/main.py +++ b/mail_move_message/controllers/main.py @@ -13,13 +13,11 @@ class MailChatController(openerp.addons.bus.controllers.main.BusController): def _poll(self, dbname, channels, last, options): if request.session.uid: - registry, cr, uid, context = request.registry, request.cr, request.session.uid, request.context channels.append((request.db, 'mail_move_message')) channels.append((request.db, 'mail_move_message.delete_message')) return super(MailChatController, self)._poll(dbname, channels, last, options) - class DataSetCustom(DataSet): def _extend_name(self, model, records): diff --git a/mail_move_message/mail_move_message_models.py b/mail_move_message/mail_move_message_models.py index a7b9d83..b1472f0 100644 --- a/mail_move_message/mail_move_message_models.py +++ b/mail_move_message/mail_move_message_models.py @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- -from openerp import api, models, fields, SUPERUSER_ID +from openerp import api +from openerp import fields +from openerp import models from openerp.tools import email_split from openerp.tools.translate import _ diff --git a/mail_move_message/static/src/js/mail_move_message.js b/mail_move_message/static/src/js/mail_move_message.js index ff53e2b..4ce2625 100644 --- a/mail_move_message/static/src/js/mail_move_message.js +++ b/mail_move_message/static/src/js/mail_move_message.js @@ -20,7 +20,7 @@ odoo.define('mail_move_message.relocate', function (require) { this.events['click .oe_move'] = function(event) { var message_id = $(event.currentTarget).data('message-id'); this.trigger("move_message", message_id); - } + }; }, on_move_message: function(message_id){ var action = { @@ -100,9 +100,9 @@ odoo.define('mail_move_message.relocate', function (require) { var context_built = $.Deferred(); if(this.node.attrs.use_for_mail_move_message) { var model = new Model(this.view.dataset.model); - var partner_id = self.field_manager.fields['partner_id'].get_value(); - var message_name_from = self.field_manager.fields['message_name_from'].get_value(); - var message_email_from = self.field_manager.fields['message_email_from'].get_value(); + var partner_id = self.field_manager.fields.partner_id.get_value(); + var message_name_from = self.field_manager.fields.message_name_from.get_value(); + var message_email_from = self.field_manager.fields.message_email_from.get_value(); context_built = model.call('create_partner', [ self.view.dataset.context.default_message_id, related_field.field.relation, diff --git a/mail_recovery/static/src/js/mail_recovery.js b/mail_recovery/static/src/js/mail_recovery.js index 482abf6..ffe7ea3 100644 --- a/mail_recovery/static/src/js/mail_recovery.js +++ b/mail_recovery/static/src/js/mail_recovery.js @@ -21,4 +21,4 @@ odoo.define('mail_recovery', function (require) { return this._super(event); }, }); -}) +}); diff --git a/mail_reply/README.rst b/mail_reply/README.rst index b31799a..ff373c7 100644 --- a/mail_reply/README.rst +++ b/mail_reply/README.rst @@ -9,8 +9,8 @@ Further information HTML Description: https://apps.odoo.com/apps/modules/9.0/mail_reply/ -Usage instructions: ``_ +Usage instructions: ``__ -Changelog: ``_ +Changelog: ``__ Tested on Odoo 9.0 d3dd4161ad0598ebaa659fbd083457c77aa9448d diff --git a/mail_reply/doc/changelog.rst b/mail_reply/doc/changelog.rst index e2b0277..5f35720 100644 --- a/mail_reply/doc/changelog.rst +++ b/mail_reply/doc/changelog.rst @@ -1,5 +1,5 @@ -Changelog -========= +Updates +======= `1.0.0` ------- diff --git a/mail_sent/tests/__init__.py b/mail_sent/tests/__init__.py index 11b0967..cadc614 100644 --- a/mail_sent/tests/__init__.py +++ b/mail_sent/tests/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import test_js +from . import test_js diff --git a/mail_sent/tests/test_js.py b/mail_sent/tests/test_js.py index 11da659..3b1ef2b 100644 --- a/mail_sent/tests/test_js.py +++ b/mail_sent/tests/test_js.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- import openerp.tests diff --git a/mail_to/doc/changelog.rst b/mail_to/doc/changelog.rst index 61af251..3aeb891 100644 --- a/mail_to/doc/changelog.rst +++ b/mail_to/doc/changelog.rst @@ -1,5 +1,5 @@ -Changelog -========= +Updates +======= `1.0.0` ------- diff --git a/mailgun/README.rst b/mailgun/README.rst index 4d45817..20db777 100644 --- a/mailgun/README.rst +++ b/mailgun/README.rst @@ -22,15 +22,15 @@ Contributors Sponsors -------- -* `IT-Projects LLC `_ +* `IT-Projects LLC `__ Further information =================== HTML Description: https://apps.odoo.com/apps/modules/9.0/mailgun/ -Usage instructions: ``_ +Usage instructions: ``__ -Changelog: ``_ +Changelog: ``__ Tested on Odoo 9.0 c8cd67c5d98b410cabe0a6efb3347a8a4de731d8 diff --git a/mailgun/__init__.py b/mailgun/__init__.py index 43dbbaa..9e5827f 100644 --- a/mailgun/__init__.py +++ b/mailgun/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import controllers -import models +from . import controllers +from . import models diff --git a/mailgun/controllers/__init__.py b/mailgun/controllers/__init__.py index a84d81a..757b12a 100644 --- a/mailgun/controllers/__init__.py +++ b/mailgun/controllers/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/mailgun/controllers/main.py b/mailgun/controllers/main.py index d7b4d99..5aa12cb 100644 --- a/mailgun/controllers/main.py +++ b/mailgun/controllers/main.py @@ -1,10 +1,6 @@ # -*- coding: utf-8 -*- from openerp.addons.web import http from openerp.addons.web.http import request -import werkzeug -import email -import requests -import simplejson import re diff --git a/mailgun/doc/changelog.rst b/mailgun/doc/changelog.rst index 3535b7e..c422520 100644 --- a/mailgun/doc/changelog.rst +++ b/mailgun/doc/changelog.rst @@ -1,5 +1,5 @@ -Changelog -========= +Updates +======= `1.1.0` ------- diff --git a/mailgun/models.py b/mailgun/models.py index 1369982..db3abb5 100644 --- a/mailgun/models.py +++ b/mailgun/models.py @@ -1,13 +1,9 @@ +# -*- coding: utf-8 -*- import requests -import time -import dateutil -import pytz import simplejson from openerp import models, api -from openerp.addons.mail.models.mail_message import decode -from openerp.addons.mail.models.mail_thread import mail_header_msgid_re import logging _logger = logging.getLogger(__name__)