# Change form view of one2many

**URL:** https://discuss.tryton.org/t/change-form-view-of-one2many/5114
**Category:** Developer
**Created:** [March 22, 2022, 5:24am UTC](https://discuss.tryton.org/t/change-form-view-of-one2many/5114 "2022-03-22T05:24:57Z")
**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: [March 22, 2022, 5:24am UTC](https://discuss.tryton.org/t/change-form-view-of-one2many/5114/1 "2022-03-22T05:24:57Z")

</div>

Hey all

I have added some field in Stock Moves but I was thinking if it is possible to hide some field(or disable) while opening form from the production such as input field which has one2many relation to Stock move?

Thanks in advance

---

<div class="post-metadata">

### Author: ![oscarQ](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/oscarq/32/413_2.png) [@oscarQ](https://discuss.tryton.org/u/oscarQ)
#### Post date: [March 22, 2022, 6:36am UTC](https://discuss.tryton.org/t/change-form-view-of-one2many/5114/2 "2022-03-22T06:36:44Z")

</div>

Hi, you can specify the view to be opened on the One2Many with the the [view\_ids](https://docs.tryton.org/projects/server/en/latest/topics/views/index.html?highlight=view_ids#field) attribute of the field, so this way you will be able to show just the fields you want.  
Also, you can just make fields invisible if the _production\_input_ field has some value.

---

<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: [April 21, 2022, 6:37am UTC](https://discuss.tryton.org/t/change-form-view-of-one2many/5114/3 "2022-04-21T06:37:19Z")

</div>

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