[FIX] Fixed POS delete_payment_line triggering and processing.
bzr revid: vta@openerp.com-20121109124854-qray80vx77vlli4r
This commit is contained in:
parent
c18686212a
commit
c5961309c4
|
@ -942,7 +942,9 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa
|
||||||
var x = new module.PaymentlineWidget(null, {
|
var x = new module.PaymentlineWidget(null, {
|
||||||
payment_line: newPaymentLine
|
payment_line: newPaymentLine
|
||||||
});
|
});
|
||||||
x.on('delete_payment_line', self, self.deleteLine);
|
x.on('delete_payment_line', self, function(r) {
|
||||||
|
self.deleteLine(r);
|
||||||
|
});
|
||||||
x.appendTo(this.$('#paymentlines'));
|
x.appendTo(this.$('#paymentlines'));
|
||||||
},
|
},
|
||||||
renderElement: function() {
|
renderElement: function() {
|
||||||
|
|
|
@ -315,7 +315,7 @@ function openerp_pos_widgets(instance, module){ //module is instance.point_of_sa
|
||||||
this._super();
|
this._super();
|
||||||
this.$('input').keyup(_.bind(this.changeAmount, this));
|
this.$('input').keyup(_.bind(this.changeAmount, this));
|
||||||
this.$('.delete-payment-line').click(function() {
|
this.$('.delete-payment-line').click(function() {
|
||||||
self.trigger('delete_payment_line');
|
self.trigger('delete_payment_line', self);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue