summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorMathieu Duckerts-Antoine <dam@odoo.com>2019-08-07 12:40:14 +0000
committerMathieu Duckerts-Antoine <dam@odoo.com>2019-08-08 09:27:23 +0000
commitd925a4557a270e3601947b748eca037e8690cc8e (patch)
treebd8e844f9dd9a371e5aec7ced026af35a08c157b /addons/web/static/src/js/views/basic/basic_model.js
parentf337496eba58841d9fe2e94367f0450eaf0fa240 (diff)
[IMP] web: default groupbys can be given a rank
Consider an action with a search view defined by the arch <search> <filter name="gb_foo" context="{'group_by':'foo'}"/> <filter name="gb_bar" context="{'group_by':'bar'}"/> </search> If the action context is { search_defaults_gb_foo: true, search_defaults_gb_bar: true, } the two groupbys will be activated at start but not necessarily in a suitable order. This commit allows to specify the order in which the default groupbys should be activated by giving them a rank. For example { search_defaults_gb_foo: 2, search_defaults_gb_bar: 1, } leads to group first by bar then by foo. The rank number should be chosen between 1 and 99. closes odoo/odoo#35538 Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions