forked from Techsystech/web
[9.0][FIX][web_widget_x2many_2d_matrix] Correctly bind events.
Event binding was applied in the wrong places, causing `xy_value_change()` never to be executed.9.0
parent
f20f51c3bf
commit
7208ce3156
|
@ -16,6 +16,9 @@ odoo.define('web_widget_x2many_2d_matrix.widget', function (require) {
|
|||
var WidgetX2Many2dMatrix = FieldOne2Many.extend({
|
||||
template: 'FieldX2Many2dMatrix',
|
||||
widget_class: 'oe_form_field_x2many_2d_matrix',
|
||||
events: {
|
||||
"change .edit": "xy_value_change",
|
||||
},
|
||||
|
||||
// those will be filled with rows from the dataset
|
||||
by_x_axis: {},
|
||||
|
@ -144,8 +147,6 @@ odoo.define('web_widget_x2many_2d_matrix.widget', function (require) {
|
|||
self.renderElement();
|
||||
self.compute_totals();
|
||||
self.setup_many2one_axes();
|
||||
self.$el.find('.edit').on(
|
||||
'change', self.proxy(self.xy_value_change));
|
||||
self.effective_readonly_change();
|
||||
}
|
||||
});
|
||||
|
@ -347,8 +348,6 @@ odoo.define('web_widget_x2many_2d_matrix.widget', function (require) {
|
|||
start: function()
|
||||
{
|
||||
var self = this;
|
||||
this.$el.find('.edit').on(
|
||||
'change', self.proxy(this.xy_value_change));
|
||||
this.compute_totals();
|
||||
this.setup_many2one_axes();
|
||||
this.on("change:effective_readonly",
|
||||
|
|
Loading…
Reference in New Issue