-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
99 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,14 +120,21 @@ Contributors | |
------------ | ||
|
||
- Laurent Mignon <[email protected]> | ||
|
||
- Serpent Consulting Services Pvt. Ltd.<[email protected]> | ||
|
||
- Aitor Bouzas <[email protected]> | ||
|
||
- Shepilov Vladislav <[email protected]> | ||
|
||
- Kevin Khao <[email protected]> | ||
|
||
- `Tecnativa <https://www.tecnativa.com>`__: | ||
|
||
- David Vidal | ||
|
||
- Nikul Chaudhary <[email protected]> | ||
|
||
Maintainers | ||
----------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["whool"] | ||
build-backend = "whool.buildapi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
- Laurent Mignon \<<[email protected]>\> | ||
- Serpent Consulting Services Pvt. Ltd.\<<[email protected]>\> | ||
- Aitor Bouzas \<<[email protected]>\> | ||
- Shepilov Vladislav \<<[email protected]>\> | ||
- Kevin Khao \<<[email protected]>\> | ||
- [Tecnativa](https://www.tecnativa.com): | ||
- David Vidal | ||
|
||
- Nikul Chaudhary \<<[email protected]>\> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Send instant notification messages to the user in live. | ||
|
||
This technical module allows you to send instant notification messages | ||
from the server to the user in live. Two kinds of notification are | ||
supported. | ||
|
||
- Success: Displayed in a success theme color flying popup div | ||
- Danger: Displayed in a danger theme color flying popup div | ||
- Warning: Displayed in a warning theme color flying popup div | ||
- Information: Displayed in a info theme color flying popup div | ||
- Default: Displayed in a default theme color flying popup div |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This module is based on the Instant Messaging Bus. To work properly, the | ||
server must be launched in gevent mode. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
To send a notification to the user you just need to call one of the new | ||
methods defined on res.users: | ||
|
||
``` python | ||
self.env.user.notify_success(message='My success message') | ||
``` | ||
|
||
or | ||
|
||
``` python | ||
self.env.user.notify_danger(message='My danger message') | ||
``` | ||
|
||
or | ||
|
||
``` python | ||
self.env.user.notify_warning(message='My warning message') | ||
``` | ||
|
||
or | ||
|
||
``` python | ||
self.env.user.notify_info(message='My information message') | ||
``` | ||
|
||
or | ||
|
||
``` python | ||
self.env.user.notify_default(message='My default message') | ||
``` | ||
|
||
![](static/description/notifications_screenshot.gif) | ||
|
||
You can test the behaviour of the notifications by installing this | ||
module in a demo database. Access the users form through Settings -\> | ||
Users & Companies. You'll see a tab called "Test web notify", here | ||
you'll find two buttons that'll allow you test the module. | ||
|
||
![](static/description/test_notifications_demo.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters