# Reloading the current tab after wizard run

**URL:** https://discuss.tryton.org/t/reloading-the-current-tab-after-wizard-run/6130
**Category:** Developer
**Created:** [May 5, 2023, 5:16pm UTC](https://discuss.tryton.org/t/reloading-the-current-tab-after-wizard-run/6130 "2023-05-05T17:16:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![yangoon](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/y/67e7ee/32.png) [@yangoon](https://discuss.tryton.org/u/yangoon)
#### Post date: [May 5, 2023, 5:16pm UTC](https://discuss.tryton.org/t/reloading-the-current-tab-after-wizard-run/6130/1 "2023-05-05T17:16:32Z")

</div>

(Version 6.0)

There exist various examples how to do that with e.g.

```auto
    def end(self):
        return 'reload'

```

But this doesn’t work for me when the wizard is called from a form.

Looking at the client code it reveals

```auto
           if (self.current_view.view_type in ['tree', 'graph', 'calendar']
                   and not self.parent):

```

After commenting this clause reloading of the form seems to succeed.

Could anyone shed some light why reloading of view\_type ‘form’ is not supported in the first place?

Thanks for your input!

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [May 6, 2023, 6:28am UTC](https://discuss.tryton.org/t/reloading-the-current-tab-after-wizard-run/6130/2 "2023-05-06T06:28:27Z")

</div>

Because `reload` is triggering a new search which is not possible in form view (because it may loose the current record).  
But also because at the end of a wizard the screen is any way reloaded.
