From 7d5de8d90d9e2cb96532c899daff9ff5a8a590c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 8 May 2014 17:34:18 +0200 Subject: [PATCH] [IMP] dropdownselection widget renamed kanban state selection bzr revid: tde@openerp.com-20140508153418-hs6ix3qouy1fu482 --- addons/web/static/src/js/view_form.js | 6 +++--- addons/web/static/src/xml/base.xml | 2 +- addons/web_kanban/static/src/js/kanban.js | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index 11dffacd161..4c4ba6f004c 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -2365,7 +2365,7 @@ instance.web.form.FieldChar = instance.web.form.AbstractField.extend(instance.we } }); -instance.web.form.DropdownSelection = instance.web.form.FieldChar.extend({ +instance.web.form.KanbanSelection = instance.web.form.FieldChar.extend({ init: function (field_manager, node) { this._super(field_manager, node); }, @@ -2390,7 +2390,7 @@ instance.web.form.DropdownSelection = instance.web.form.FieldChar.extend({ var self = this; this.record_id = self.view.datarecord.id; this.states = self.prepare_dropdown_selection();; - this.$el.html(QWeb.render("DropdownSelection", {'widget': self})); + this.$el.html(QWeb.render("KanbanSelection", {'widget': self})); this.$el.find('.oe_legend').click(self.do_action.bind(self)); }, do_action: function(e) { @@ -6216,7 +6216,7 @@ instance.web.form.widgets = new instance.web.Registry({ 'many2many_checkboxes': 'instance.web.form.FieldMany2ManyCheckBoxes', 'x2many_counter': 'instance.web.form.X2ManyCounter', 'priority':'instance.web.form.Priority', - 'dropdown_selection':'instance.web.form.DropdownSelection', + 'kanban_state_selection':'instance.web.form.KanbanSelection', 'statinfo': 'instance.web.form.StatInfo', }); diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 1b72d0c849c..f801e6c7c71 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1029,7 +1029,7 @@ - +
diff --git a/addons/web_kanban/static/src/js/kanban.js b/addons/web_kanban/static/src/js/kanban.js index ffb4d5c3d78..2ea29674d8e 100644 --- a/addons/web_kanban/static/src/js/kanban.js +++ b/addons/web_kanban/static/src/js/kanban.js @@ -1303,7 +1303,7 @@ instance.web_kanban.Priority = instance.web_kanban.AbstractField.extend({ }, }); -instance.web_kanban.DropdownSelection = instance.web_kanban.AbstractField.extend({ +instance.web_kanban.KanbanSelection = instance.web_kanban.AbstractField.extend({ init: function(parent, field, $node) { this._super.apply(this, arguments); this.name = $node.attr('name') @@ -1328,7 +1328,7 @@ instance.web_kanban.DropdownSelection = instance.web_kanban.AbstractField.extend var self = this; this.record_id = self.parent.id; this.states = self.prepare_dropdown_selection();; - this.$el = $(QWeb.render("DropdownSelection", {'widget': self})); + this.$el = $(QWeb.render("KanbanSelection", {'widget': self})); this.$el.find('.oe_legend').click(self.do_action.bind(self)); }, do_action: function(e) { @@ -1347,7 +1347,7 @@ instance.web_kanban.DropdownSelection = instance.web_kanban.AbstractField.extend instance.web_kanban.fields_registry = new instance.web.Registry({}); instance.web_kanban.fields_registry.add('priority','instance.web_kanban.Priority'); -instance.web_kanban.fields_registry.add('dropdown_selection','instance.web_kanban.DropdownSelection'); +instance.web_kanban.fields_registry.add('kanban_state_selection','instance.web_kanban.KanbanSelection'); }; // vim:et fdc=0 fdl=0 foldnestmax=3 fdm=syntax: