Using position="after" in inherited view adds the fields in reverse order
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) | Status tracked in Trunk | |||||
5.0 |
Fix Released
|
Medium
|
Anup(SerpentCS) | |||
Trunk |
Fix Released
|
Medium
|
Unassigned |
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">
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.
Have just noticed this does not seem to affect listviews, so I guess it could be a Web Client problem?