From 4330ea02676a4afd88707bb463a007e7de3c8686 Mon Sep 17 00:00:00 2001 From: Dharmraj Jhala Date: Thu, 11 May 2017 17:15:15 +0530 Subject: [ADD] web, *: add rainbowification This commit introduces the 'rainbowification' feature to the web client (and to some affected addons). This feature is essentially a way to display a nice friendly message when some business event happens. For example, a encouraging message is displayed when the user clear her/his inbox, or when a salesman closes a deal. The mechanism currently only displays a 'rainbowman', but could be extended later to add other kind of animation. There are a few different ways to display a 'rainbowman': - any JS code can simply trigger_up an event ('show_effect') with some options: for example this.trigger_up('show_effect', { type: 'rainbow_man', fadeout: 'no', message: $done, click_close: false, }); - an action returned by the server can have an 'effect' key, with some options - the do_execute_action method accepts a 'effect' option. This is useful when one wants to specify a rainbow on an action button in a form view Joint work with: dbh , ged --- addons/web/static/src/xml/rainbow_man.xml | 52 +++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 addons/web/static/src/xml/rainbow_man.xml (limited to 'addons/web/static/src/xml/rainbow_man.xml') diff --git a/addons/web/static/src/xml/rainbow_man.xml b/addons/web/static/src/xml/rainbow_man.xml new file mode 100644 index 00000000000..744912a9a94 --- /dev/null +++ b/addons/web/static/src/xml/rainbow_man.xml @@ -0,0 +1,52 @@ + + + +
+ + + + + + +
+ + + +
+
+ + + + + + + + + + + + + +
+ + + +
+
+
+
+
+
+
+
+
+
+ +
+ + + + + + + -- cgit v1.2.3