[FIX] point_of_sale: automatically add a default payment method when entering payment amount if there was none.

This commit is contained in:
Frédéric van der Essen
2015-03-09 15:46:28 +01:00
parent c11edf0423
commit 18a44a5476
@@ -1480,6 +1480,10 @@ openerp.point_of_sale.load_screens = function load_screens(instance, module){ //
}
},
click_numpad: function(button) {
if (!this.pos.get_order().get_paymentlines().length) {
this.pos.get_order().add_paymentline( this.pos.cashregisters[0]);
this.render_paymentlines();
}
this.payment_input(button.data('action'));
},
render_numpad: function() {