From 48dcd6ffdd6c134c91d4441c5c0f5e19118e2a27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Tue, 2 Dec 2025 13:08:54 +0100 Subject: [PATCH] Add user notification --- sao/CHANGELOG | 1 + sao/Gruntfile.js | 1 + sao/images/tryton-notification.svg | 1 + sao/index.html | 9 +- sao/src/common.js | 1 + sao/src/notification.js | 197 ++++++++++++++++++ sao/src/sao.js | 31 ++- sao/src/sao.less | 101 +++++++-- tryton/CHANGELOG | 1 + tryton/tryton/action/main.py | 2 +- tryton/tryton/client.py | 8 + .../pixmaps/tryton/tryton-notification.svg | 1 + tryton/tryton/gui/main.py | 8 + tryton/tryton/gui/notification.py | 124 +++++++++++ trytond/CHANGELOG | 1 + trytond/trytond/ir/ui/menu.py | 1 + trytond/trytond/res/ir.py | 12 +- trytond/trytond/res/notification.py | 161 ++++++++++++++ trytond/trytond/res/notification.xml | 85 ++++++++ trytond/trytond/res/tryton.cfg | 2 + .../trytond/res/view/notification_form.xml | 13 ++ .../res/view/notification_form_admin.xml | 29 +++ .../trytond/res/view/notification_list.xml | 9 + 23 files changed, 773 insertions(+), 26 deletions(-) create mode 100644 sao/images/tryton-notification.svg create mode 100644 sao/src/notification.js create mode 100644 tryton/tryton/data/pixmaps/tryton/tryton-notification.svg create mode 100644 tryton/tryton/gui/notification.py create mode 100644 trytond/trytond/res/notification.py create mode 100644 trytond/trytond/res/notification.xml create mode 100644 trytond/trytond/res/view/notification_form.xml create mode 100644 trytond/trytond/res/view/notification_form_admin.xml create mode 100644 trytond/trytond/res/view/notification_list.xml diff --git a/sao/CHANGELOG b/sao/CHANGELOG index 6ad15f6486..af76c99880 100644 --- a/sao/CHANGELOG +++ b/sao/CHANGELOG @@ -1,3 +1,4 @@ +* Manage user notification * Add search on empty relation field to domain parser * Escape completion content with custom format (issue14363) * Use sandboxed iframe to display document (issue14290) diff --git a/sao/Gruntfile.js b/sao/Gruntfile.js index 58f5bcd7a3..3280b24e4b 100644 --- a/sao/Gruntfile.js +++ b/sao/Gruntfile.js @@ -24,6 +24,7 @@ module.exports = function(grunt) { 'src/board.js', 'src/bus.js', 'src/chat.js', + 'src/notification.js', 'src/plugins.js', 'src/html_sanitizer.js' ]; diff --git a/sao/images/tryton-notification.svg b/sao/images/tryton-notification.svg new file mode 100644 index 0000000000..1ea446f426 --- /dev/null +++ b/sao/images/tryton-notification.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/sao/index.html b/sao/index.html index e3d4bd5637..9864cd24b7 100644 --- a/sao/index.html +++ b/sao/index.html @@ -39,8 +39,8 @@ this repository contains the full copyright notices and license terms. -->