---
title: "How to move a field to other position in a OpenERP7 form view?"  
description: "How to move a field to other position in a OpenERP7 form view?"  
author: "Anonymous User"  
published: 2014-11-06  
updated: 2014-11-06  
canonical: https://www.mindstick.com/forum/2528/how-to-move-a-field-to-other-position-in-a-openerp7-form-view  
category: "xml"  
tags: ["xml parsing"]  
reading_time: 1 minute  

---

# How to move a field to other position in a OpenERP7 form view?

I made a [form](https://www.mindstick.com/forum/6/multi-form-mfc-application) [view](https://yourviews.mindstick.com/view/84701/layoffs-in-google-india-2023-view) in OpenERP7, which [inherits](https://www.mindstick.com/interview/85/what-is-a-subclass) from an existing form view.

I [am trying](https://answers.mindstick.com/qa/36834/which-two-programming-languages-should-i-master-in-if-i-am-trying-to-get-into-google-or-facebook) to move some [field](https://www.mindstick.com/forum/160867/does-mindstick-provide-training-for-field-marketing) to other position, only moving, because I need to preserve its functionality.

Easy example: let's suppose that the [name](https://yourviews.mindstick.com/view/87450/how-to-generate-a-brand-name-using-linkedin-comprehensive-guide) of the field I want to move is field_to_move, and I want to move it just after the field called above_field. I tried the next [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii):

```
<xpath expr="/form//field[@name='field_to_move']" position="replace">
    <xpath expr="/form//field[@name='above_field']" position="after">
        <field name="field_to_move" on_change="onchange_type(field_to_move)" />
    </xpath>
</xpath>
```

The [result](https://www.mindstick.com/blog/12011/advantages-of-getting-result-oriented-seo-from-an-agency) is [wrong](https://answers.mindstick.com/qa/48468/who-wrote-the-the-wrong-enemy-america-in-afghanistan-2001-2014-and-when), I am generating the new field in a wrong position (the same before the changes) and the old field is still visible, so it is duplicated.

## Replies

### Reply by Samuel Fernandes

Try this, it will work

1. Hide the current position of field. ``` <field name="field_to_move" position="attributes"> <attribute name="invisible">1</attribute> </field> ```
2. Move to desire place using below code. ``` <field name='above_field' position="after"> <field name="field_to_move"/> </field> ```

Hope this will help you.


---

Original Source: https://www.mindstick.com/forum/2528/how-to-move-a-field-to-other-position-in-a-openerp7-form-view

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
