[FIX] point_of_sale: back on payment screen must always go to product list or you can get stuck
This commit is contained in:
committed by
Frédéric van der Essen
parent
604630abb5
commit
f2fdaa017c
@@ -1211,6 +1211,9 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa
|
||||
click_set_customer: function(){
|
||||
this.pos_widget.screen_selector.set_current_screen('clientlist');
|
||||
},
|
||||
click_back: function(){
|
||||
this.pos_widget.screen_selector.set_current_screen('product-list');
|
||||
},
|
||||
renderElement: function() {
|
||||
var self = this;
|
||||
this._super();
|
||||
@@ -1224,7 +1227,7 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa
|
||||
this.render_paymentlines();
|
||||
|
||||
this.$('.back').click(function(){
|
||||
self.pos_widget.screen_selector.back();
|
||||
self.click_back();
|
||||
});
|
||||
|
||||
this.$('.next').click(function(){
|
||||
|
||||
Reference in New Issue
Block a user