[IMP] improves sorting mechanisms in datasets
authorGéry Debongnie <ged@odoo.com>
Mon, 16 Jun 2014 08:44:23 +0000 (10:44 +0200)
committerGéry Debongnie <ged@odoo.com>
Mon, 16 Jun 2014 08:44:23 +0000 (10:44 +0200)
commit5f09c7dedc6f4a60a1b42858324990aa35084f10
tree855f14ffd5d7ee07ad449c17c1a179693f1dc90f
parentabf4ca3120a28279f5860adf6321fa832d84fc7a
[IMP] improves sorting mechanisms in datasets

Create a deserialize_sort method and add a set_sort method to
datasets.  The set_sort method is useful to avoid duplicating code
in lists and kanban views (to set the initial default order)
addons/web/static/src/js/data.js
addons/web/static/src/js/view_list.js
addons/web_kanban/static/src/js/kanban.js