[IMP] dropdownselection widget renamed kanban state selection
bzr revid: tde@openerp.com-20140508153418-hs6ix3qouy1fu482
This commit is contained in:
parent
15e28717b4
commit
7d5de8d90d
|
@ -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) {
|
init: function (field_manager, node) {
|
||||||
this._super(field_manager, node);
|
this._super(field_manager, node);
|
||||||
},
|
},
|
||||||
|
@ -2390,7 +2390,7 @@ instance.web.form.DropdownSelection = instance.web.form.FieldChar.extend({
|
||||||
var self = this;
|
var self = this;
|
||||||
this.record_id = self.view.datarecord.id;
|
this.record_id = self.view.datarecord.id;
|
||||||
this.states = self.prepare_dropdown_selection();;
|
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));
|
this.$el.find('.oe_legend').click(self.do_action.bind(self));
|
||||||
},
|
},
|
||||||
do_action: function(e) {
|
do_action: function(e) {
|
||||||
|
@ -6216,7 +6216,7 @@ instance.web.form.widgets = new instance.web.Registry({
|
||||||
'many2many_checkboxes': 'instance.web.form.FieldMany2ManyCheckBoxes',
|
'many2many_checkboxes': 'instance.web.form.FieldMany2ManyCheckBoxes',
|
||||||
'x2many_counter': 'instance.web.form.X2ManyCounter',
|
'x2many_counter': 'instance.web.form.X2ManyCounter',
|
||||||
'priority':'instance.web.form.Priority',
|
'priority':'instance.web.form.Priority',
|
||||||
'dropdown_selection':'instance.web.form.DropdownSelection',
|
'kanban_state_selection':'instance.web.form.KanbanSelection',
|
||||||
'statinfo': 'instance.web.form.StatInfo',
|
'statinfo': 'instance.web.form.StatInfo',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1029,7 +1029,7 @@
|
||||||
</t>
|
</t>
|
||||||
</span>
|
</span>
|
||||||
</t>
|
</t>
|
||||||
<t t-name="DropdownSelection">
|
<t t-name="KanbanSelection">
|
||||||
<div class="btn-group kanban_state">
|
<div class="btn-group kanban_state">
|
||||||
<t t-foreach="widget.states" t-as="rec">
|
<t t-foreach="widget.states" t-as="rec">
|
||||||
<a t-if="widget.get('value') === rec.name">
|
<a t-if="widget.get('value') === rec.name">
|
||||||
|
|
|
@ -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) {
|
init: function(parent, field, $node) {
|
||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
this.name = $node.attr('name')
|
this.name = $node.attr('name')
|
||||||
|
@ -1328,7 +1328,7 @@ instance.web_kanban.DropdownSelection = instance.web_kanban.AbstractField.extend
|
||||||
var self = this;
|
var self = this;
|
||||||
this.record_id = self.parent.id;
|
this.record_id = self.parent.id;
|
||||||
this.states = self.prepare_dropdown_selection();;
|
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));
|
this.$el.find('.oe_legend').click(self.do_action.bind(self));
|
||||||
},
|
},
|
||||||
do_action: function(e) {
|
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 = new instance.web.Registry({});
|
||||||
instance.web_kanban.fields_registry.add('priority','instance.web_kanban.Priority');
|
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:
|
// vim:et fdc=0 fdl=0 foldnestmax=3 fdm=syntax:
|
||||||
|
|
Loading…
Reference in New Issue