summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorPrakash Prajapati <ppr@odoo.com>2017-10-09 19:07:23 +0530
committerYannick Tivisse <yti@odoo.com>2018-02-05 13:19:38 +0100
commit148d23915c79e34e0dca1156ec38d3fe0321740d (patch)
tree22e7b460f3d6d2db74714dda61f1babaf54b73da /addons
parent4b78e71806e58e5210e072208742f4e6e2af5184 (diff)
[ADD] account: Display a rainbow man after the configuration steps
Purpose ======= There should be a rainbow man when finishing to configure the accounting via the new config bar
Diffstat (limited to 'addons')
-rw-r--r--addons/account/wizard/setup_wizards.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/account/wizard/setup_wizards.py b/addons/account/wizard/setup_wizards.py
index f31cb6812b9..6467fabc76c 100644
--- a/addons/account/wizard/setup_wizards.py
+++ b/addons/account/wizard/setup_wizards.py
@@ -60,6 +60,14 @@ class OpeningAccountMoveWizard(models.TransientModel):
def validate(self):
self.opening_move_id.post()
+ return {
+ "effect": {
+ 'fadeout': 'slow',
+ 'img_url': '/web/static/src/img/smile.svg',
+ 'message': "Well done! The configuration steps have been done successfully.",
+ 'type': "rainbow_man"
+ }
+ }
@api.onchange('opening_move_line_ids')
def opening_move_line_ids_changed(self):