diff options
| author | Jigar Patel <jat@openerp.com> | 2015-01-07 11:58:41 +0530 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2015-02-02 11:01:59 +0100 |
| commit | 5a1ea01d8a00877b552e5968d8e9a8446ad9f015 (patch) | |
| tree | 7e5597f33584db656bb8d787a3fff4bbdb0031b3 /addons/web/static/src | |
| parent | 9fe39ee52abea7e913972148e93fa2da4e61ddeb (diff) | |
[IMP] web: Sort fields
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/view_pivot.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/view_pivot.js b/addons/web/static/src/js/view_pivot.js index ed0b65c9702..c76893a4938 100644 --- a/addons/web/static/src/js/view_pivot.js +++ b/addons/web/static/src/js/view_pivot.js @@ -87,7 +87,7 @@ instance.web.PivotView = instance.web.View.extend({ self.$buttons.find('li[data-field="' + measure + '"]').addClass('selected'); }); - var another_ctx = {fields: _.pairs(this.groupable_fields)}; + var another_ctx = {fields: _.chain(this.groupable_fields).pairs().sortBy(function(f){return f[1].string;}).value()}; this.$field_selection = this.$('.o-field-selection'); this.$field_selection.html(QWeb.render('PivotView.FieldSelection', another_ctx)); openerp.web.bus.on('click', self, function () { |
