diff options
| author | Yogesh (OpenERP) <ysa@tinyerp.com> | 2011-08-05 16:31:00 +0530 |
|---|---|---|
| committer | Yogesh (OpenERP) <ysa@tinyerp.com> | 2011-08-05 16:31:00 +0530 |
| commit | c117b60b0bf35b97a9bebde4b0b2b6dd682194fd (patch) | |
| tree | ab8e773f54da269ca677c6999fdcdf375bd4cbba | |
| parent | fe957aa6a15a7bbf84ea5623872b4d30df6de991 (diff) | |
[IMP] if sequence field available in model then resquece all field.
bzr revid: ysa@tinyerp.com-20110805110100-cg9fz3udhdall117
| -rw-r--r-- | addons/base_kanban/static/src/js/kanban.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/base_kanban/static/src/js/kanban.js b/addons/base_kanban/static/src/js/kanban.js index 81e325eb135..0e928f492e5 100644 --- a/addons/base_kanban/static/src/js/kanban.js +++ b/addons/base_kanban/static/src/js/kanban.js @@ -24,7 +24,7 @@ openerp.base_kanban.KanbanView = openerp.base.View.extend({ on_loaded: function(data) { var self = this; this.template_xml = ''; - + this.columns = data.all_fields; _.each(data.fields_view.arch.children, function(child) { if (child.tag == "template"){ self.template_xml = openerp.base.json_node_to_xml(child, true) @@ -80,7 +80,7 @@ openerp.base_kanban.KanbanView = openerp.base.View.extend({ var self = this; var from = ui.item.index(), to = ui.item.prev().index() || 0; this.flag = false; - if(self.destination_index != from){ + if(this.columns.sequence && self.destination_index != from){ var child_record = ui.item.parent().children(); var data, sequence=1, index = to; child_record.splice(0, to); |
