c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #00194
[Bug 455547] Re: Using position="after" in inherited view adds the fields in reverse order
** Changed in: openobject-server/5.0
Status: New => Confirmed
--
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: Confirmed
Status in OpenObject Server 5.0 series: Confirmed
Status in OpenObject Server trunk series: Confirmed
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.