[IMP] web_notify: Add possibility to return an action in a notification

This commit is contained in:
Guewen Baconnier
2018-06-27 15:52:14 +02:00
committed by Laurent Stukkens
parent dac33645f2
commit 5d1c3d5fd7
6 changed files with 98 additions and 12 deletions

View File

@@ -19,6 +19,7 @@ class TestResUsers(common.TransactionCase):
"title": "title",
"sticky": True,
"html": False,
"action": None,
}
self.env.user.notify_success(**test_msg)
news = bus_bus.search(domain) - existing
@@ -36,6 +37,7 @@ class TestResUsers(common.TransactionCase):
"title": "title",
"sticky": True,
"html": False,
"action": None,
}
self.env.user.notify_danger(**test_msg)
news = bus_bus.search(domain) - existing
@@ -53,6 +55,7 @@ class TestResUsers(common.TransactionCase):
"title": "title",
"sticky": True,
"html": False,
"action": None,
}
self.env.user.notify_warning(**test_msg)
news = bus_bus.search(domain) - existing
@@ -70,6 +73,7 @@ class TestResUsers(common.TransactionCase):
"title": "title",
"sticky": True,
"html": False,
"action": None,
}
self.env.user.notify_info(**test_msg)
news = bus_bus.search(domain) - existing
@@ -87,6 +91,7 @@ class TestResUsers(common.TransactionCase):
"title": "title",
"sticky": True,
"html": False,
"action": None,
}
self.env.user.notify_default(**test_msg)
news = bus_bus.search(domain) - existing