Skip to content

Commit cb5c9e3

Browse files
committed
web_notify: Add HTML test button
1 parent 53b5ca6 commit cb5c9e3

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

web_notify/models/res_users.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,8 @@ def _notify_channel(
150150
"web_notify",
151151
bus_message,
152152
)
153+
154+
def action_test_html_notify(self):
155+
self.notify_info(
156+
message="<b>Bold text</b><br/>New line", html=True, sticky=True
157+
)

web_notify/views/res_users_demo.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@
5555
/>
5656
</group>
5757
</group>
58+
<group>
59+
<group>
60+
<button
61+
name="action_test_html_notify"
62+
type="object"
63+
string="Test default HTML notification"
64+
class="oe_highlight"
65+
/>
66+
</group>
67+
</group>
5868
</page>
5969
</xpath>
6070
</field>

0 commit comments

Comments
 (0)