# How to hide field on parent module from child module

**URL:** https://discuss.tryton.org/t/how-to-hide-field-on-parent-module-from-child-module/2095
**Category:** Developer
**Created:** [December 18, 2019, 4:16pm UTC](https://discuss.tryton.org/t/how-to-hide-field-on-parent-module-from-child-module/2095 "2019-12-18T16:16:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![German](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/german/32/143_2.png) [@German](https://discuss.tryton.org/u/German)
#### Post date: [December 18, 2019, 4:16pm UTC](https://discuss.tryton.org/t/how-to-hide-field-on-parent-module-from-child-module/2095/1 "2019-12-18T16:16:09Z")

</div>

Dear Tryton team,  
I’ve wondering if is it possible to hide an existing field or label after install a new child module, and what it’s the correct way to do that. My first thought was to create a field called: “empty” with blank space as label and then use replace :

\<xpath expr=“/form/field[@name=" **parent\_field**"]” position=“replace”\>  
\<label name=“empty”\>  
\<xpath\>

Is this a correct approach or should I use a better solution?  
Thanks in advance

---

<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: [December 18, 2019, 8:32pm UTC](https://discuss.tryton.org/t/how-to-hide-field-on-parent-module-from-child-module/2095/2 "2019-12-18T20:32:04Z")

</div>

Removing existing field is always dangerous because other modules may depend of the presence of the field. But it will work, I would just use `id` instead of `name` because `empty` is probably not a field name.  
Otherwise you could simple make it invisible by adding the attribute `invisible="1"`.

---

<div class="post-metadata">

### Author: ![German](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/german/32/143_2.png) [@German](https://discuss.tryton.org/u/German)
#### Post date: [December 18, 2019, 9:30pm UTC](https://discuss.tryton.org/t/how-to-hide-field-on-parent-module-from-child-module/2095/3 "2019-12-18T21:30:18Z")

</div>

> [@ced](#):
>
> attribute `invisible="1"` .

Good, I can modify the attributes, it’s a more elegant way. thanks cedric!

---

<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: [January 17, 2020, 9:30pm UTC](https://discuss.tryton.org/t/how-to-hide-field-on-parent-module-from-child-module/2095/4 "2020-01-17T21:30:23Z")

</div>

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