mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_notify: Add possibility to return an action in a notification
This commit is contained in:
committed by
Laurent Stukkens
parent
dac33645f2
commit
5d1c3d5fd7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user