3
0
Fork 0

[MIG] Migration of web_notify

10.0
Jay Vora(SerpentCS) 2016-11-18 18:52:57 +05:30
parent 9dc9fa01c9
commit 6a1ebe8e3d
3 changed files with 5 additions and 6 deletions

View File

@ -2,8 +2,7 @@
# Copyright 2016 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import api, fields, models, _
from odoo import api, fields, models, _
class ResUsers(models.Model):

View File

@ -3,7 +3,7 @@ odoo.define('web_notify.WebClient', function (require) {
var WebClient = require('web.WebClient');
var base_bus = require('bus.bus');
var _ = require('_');
//var _ = require('_');
WebClient.include({
init: function(parent, client_options){

View File

@ -2,8 +2,8 @@
# Copyright 2016 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp.tests import common
from openerp.addons.bus.models.bus import json_dump
from odoo.tests import common
from odoo.addons.bus.models.bus import json_dump
import mock
@ -42,7 +42,7 @@ class TestResUsers(common.TransactionCase):
def test_notify_many(self):
# check that the notification of a list of users is done with
# a single call to the bus
with mock.patch('openerp.addons.bus.models.bus.ImBus.sendmany'
with mock.patch('odoo.addons.bus.models.bus.ImBus.sendmany'
) as mockedSendMany:
users = self.env.user.search([(1, "=", 1)])
self.assertTrue(len(users) > 1)