[IMP] base_import: lexicographically sort fields in field-matching UI
bzr revid: xmo@openerp.com-20120910072032-wbgafg3z45z4l29a
This commit is contained in:
parent
ad670b6887
commit
34d15bb862
|
@ -199,6 +199,12 @@ openerp.base_import = function (instance) {
|
|||
traverse(field, []);
|
||||
});
|
||||
|
||||
var cmp = function (field1, field2) {
|
||||
return field1.text.localeCompare(field2.text);
|
||||
|
||||
};
|
||||
regulars.sort(cmp);
|
||||
o2m.sort(cmp);
|
||||
return basic.concat([
|
||||
{ text: _t("Normal Fields"), children: regulars },
|
||||
{ text: _t("Relation Fields"), children: o2m }
|
||||
|
|
Loading…
Reference in New Issue