From 148d23915c79e34e0dca1156ec38d3fe0321740d Mon Sep 17 00:00:00 2001 From: Prakash Prajapati Date: Mon, 9 Oct 2017 19:07:23 +0530 Subject: [PATCH] [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 --- addons/account/wizard/setup_wizards.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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):