← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 455547] Re: Using position="after" in inherited view adds the fields in reverse order

 

** Changed in: openobject-server/trunk
       Status: Confirmed => In Progress

** Changed in: openobject-server/trunk
     Assignee: (unassigned) => Anup (OpenERP) (ach-openerp)

** Changed in: openobject-server/5.0
     Assignee: (unassigned) => Anup (OpenERP) (ach-openerp)

** Changed in: openobject-server/5.0
       Status: Confirmed => In Progress

-- 
Using position="after" in inherited view adds the fields in reverse order
https://bugs.launchpad.net/bugs/455547
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP OpenObject.

Status in OpenObject Server: In Progress
Status in OpenObject Server 5.0 series: In Progress
Status in OpenObject Server trunk series: In Progress

Bug description:
Applies to 5.0.6

For example, if I use the following 'arch' XML in an inherited view:

            <field name="arch" type="xml">
                <field name="my_field" position="after">
                    <field name="field1" />
                    <field name="field2" />
                    <field name="field3" />
                    <field name="field4" />
                </field>
            </field>

The resulting screen will display the fields in the following order:

my_field
field4
field3
field2
field1

My guess is that the server is calling the 'insert after' xml method for each sub-tag in order.

The fix will be to call the 'insert after' xml method for each of the sub-tags in reverse order, so that field1 is inserted last, so it appears directly after my_field

I will use the position="replace" method as a workaround for now.