# Open Created Record with wizard?

**URL:** <https://discuss.tryton.org/t/open-created-record-with-wizard/5042>\
**Category:** Developer\
**Created:** [February 24, 2022, 12:15pm UTC](https://discuss.tryton.org/t/open-created-record-with-wizard/5042 "2022-02-24T12:15:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deathrake](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/d/b487fb/32.png) [@deathrake](https://discuss.tryton.org/u/deathrake)\
**Post date:** [February 24, 2022, 12:15pm UTC](https://discuss.tryton.org/t/open-created-record-with-wizard/5042/1 "2022-02-24T12:15:08Z")

</div>

Hey

I have created a record with the help of wizard . but I was expecting somehow to open the created record at the transition . so after the wizard I could see the newly created record form in new Tryton tab

Thanks in advance

---

<div class="post-metadata">

**Author:** ![acaubet](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/acaubet/32/1493_2.png) [@acaubet](https://discuss.tryton.org/u/acaubet)\
**Post date:** [February 24, 2022, 1:06pm UTC](https://discuss.tryton.org/t/open-created-record-with-wizard/5042/2 "2022-02-24T13:06:20Z")

</div>

You need to create a `StateAction` pointing to the view and the `def do_return_()` need to return action and data containing a dict with a list of the ids of the records.

Here you have a full example:  
[https://hg.tryton.org/modules/purchase/file/d035bd6549e8/purchase.py#l2046](https://hg.tryton.org/modules/purchase/file/d035bd6549e8/purchase.py#l2046)

---

<div class="post-metadata">

**Author:** ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)\
**Post date:** [March 26, 2022, 1:06pm UTC](https://discuss.tryton.org/t/open-created-record-with-wizard/5042/3 "2022-03-26T13:06:43Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
