forked from Techsystech/web
[MIG] Migration started web_notify
parent
b0d5889a82
commit
4e7b1527b0
|
@ -63,6 +63,7 @@ Contributors
|
||||||
------------
|
------------
|
||||||
|
|
||||||
* Laurent Mignon <laurent.mignon@acsone.eu>
|
* Laurent Mignon <laurent.mignon@acsone.eu>
|
||||||
|
* Serpent Consulting Services Pvt. Ltd.<jay.vora@serpentcs.com>
|
||||||
|
|
||||||
Maintainer
|
Maintainer
|
||||||
----------
|
----------
|
||||||
|
|
|
@ -6,9 +6,11 @@
|
||||||
'name': 'Web Notify',
|
'name': 'Web Notify',
|
||||||
'summary': """
|
'summary': """
|
||||||
Send notification messages to user""",
|
Send notification messages to user""",
|
||||||
'version': '9.0.1.0.0',
|
'version': '10.0.1.0.0',
|
||||||
|
'description': 'Web Notify',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'author': 'ACSONE SA/NV,Odoo Community Association (OCA)',
|
'author': """Serpent Consulting Services Pvt. Ltd.,
|
||||||
|
ACSONE SA/NV, Odoo Community Association (OCA)""",
|
||||||
'website': 'https://acsone.eu/',
|
'website': 'https://acsone.eu/',
|
||||||
'depends': [
|
'depends': [
|
||||||
'web',
|
'web',
|
||||||
|
@ -19,5 +21,5 @@
|
||||||
],
|
],
|
||||||
'demo': [
|
'demo': [
|
||||||
],
|
],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Copyright 2016 ACSONE SA/NV
|
# Copyright 2016 ACSONE SA/NV
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# 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):
|
class ResUsers(models.Model):
|
||||||
|
|
|
@ -3,7 +3,7 @@ odoo.define('web_notify.WebClient', function (require) {
|
||||||
|
|
||||||
var WebClient = require('web.WebClient');
|
var WebClient = require('web.WebClient');
|
||||||
var base_bus = require('bus.bus');
|
var base_bus = require('bus.bus');
|
||||||
var _ = require('_');
|
//var _ = require('_');
|
||||||
|
|
||||||
WebClient.include({
|
WebClient.include({
|
||||||
init: function(parent, client_options){
|
init: function(parent, client_options){
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
# Copyright 2016 ACSONE SA/NV
|
# Copyright 2016 ACSONE SA/NV
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
from openerp.tests import common
|
from odoo.tests import common
|
||||||
from openerp.addons.bus.models.bus import json_dump
|
from odoo.addons.bus.models.bus import json_dump
|
||||||
import mock
|
import mock
|
||||||
|
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ class TestResUsers(common.TransactionCase):
|
||||||
def test_notify_many(self):
|
def test_notify_many(self):
|
||||||
# check that the notification of a list of users is done with
|
# check that the notification of a list of users is done with
|
||||||
# a single call to the bus
|
# 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:
|
) as mockedSendMany:
|
||||||
users = self.env.user.search([(1, "=", 1)])
|
users = self.env.user.search([(1, "=", 1)])
|
||||||
self.assertTrue(len(users) > 1)
|
self.assertTrue(len(users) > 1)
|
||||||
|
|
Loading…
Reference in New Issue