From f72594bcc6bd30b1f3257fc2ad2cc8c4c682e8a0 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Thu, 29 Oct 2015 13:51:32 +0100 Subject: [IMP] web: add a generic notification feature inside form views The notification box remains on the form until either: - the user closes it explicitly, or - the user edits the record, or - the form view is refreshed (switch to another record, or refresh form). Add a method `once` to `EventDispatcherMixin`, as it is convenient. Make `FormView` trigger events `to_view_mode` and `to_edit_mode`. --- addons/web/static/src/xml/base.xml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'addons/web/static/src/xml/base.xml') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 82197ef6efe..4ad7312d40c 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1456,4 +1456,12 @@ + +
+ +
+
+ -- cgit v1.2.3