# How to choose view id for One2Many search view

**URL:** https://discuss.tryton.org/t/how-to-choose-view-id-for-one2many-search-view/3346
**Category:** Developer
**Created:** [October 13, 2020, 5:13pm UTC](https://discuss.tryton.org/t/how-to-choose-view-id-for-one2many-search-view/3346 "2020-10-13T17:13:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bala4901](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/fbc32d/32.png) [@bala4901](https://discuss.tryton.org/u/bala4901)
#### Post date: [October 13, 2020, 5:13pm UTC](https://discuss.tryton.org/t/how-to-choose-view-id-for-one2many-search-view/3346/1 "2020-10-13T17:13:57Z")

</div>

Hi,

May I know how to change the view for the “search view” for one2many?

 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/7/7d23a5ad9a3b08a1ac9ebf53ccfffa7f52d8a2dc.png)

---

<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: [October 13, 2020, 9:28pm UTC](https://discuss.tryton.org/t/how-to-choose-view-id-for-one2many-search-view/3346/2 "2020-10-13T21:28:16Z")

</div>

It is defined by the [attribute `view_ids`](https://docs.tryton.org/projects/server/en/latest/topics/views/index.html#field). You must use the XML id of the view or the database id.

---

<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: [November 12, 2020, 9:28pm UTC](https://discuss.tryton.org/t/how-to-choose-view-id-for-one2many-search-view/3346/3 "2020-11-12T21:28:19Z")

</div>

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