Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How to properly put field inside defined group without name

Tomas Parnarauskas
on 6/19/13, 10:54 AM 1,262 views

I inherited form view and want to put new field inside that fields group after those fields that are inside that group. The problem is that group defined in original form does not have name, so I don't see a way to give correct path where my field should be located. For example let say there is such form with this group defined:

        <field name="first"/>
        <field name="second"/>

So if I inherit that form and try something like this:

<field name="arch" type="xml>
    <field name="second" position="after"/>
     <field name="third"/>

Using such approach will place my field after group which makes not properly lined with those other fields (for example it goes out bellow upper field values (both label and field). It looks like this:

     label_of_first | first
    label_of_second | second
                     label_of_third | third

Ghanshyam Prajapati

--Ghanshyam Prajapati--
| 4 4 8
Pune, India
--Ghanshyam Prajapati--
OpenERP Developer
Ghanshyam Prajapati
On 6/19/13, 11:05 AM

You should use XPath Element.

See Other Links,

xpath in openerp 7

Hope It work for you,

I can use xpath, but I need to specify in which group I want to place my fields. The problem is, that given group do not have name, it's nameless. So is there any way to show where that group is located without knowing it's name??

NOD Baltic, UAB, Tomas Parnarauskas
on 7/16/13, 6:29 AM

I use xpath and bumped into the exact same problem, but no solution yet. Does anyone have new light on this subject?

Carlos Llamacho
on 1/26/14, 11:22 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 6/19/13, 10:54 AM
Seen: 1262 times
Last updated: 3/16/15, 8:10 AM