[FIX] point_of_sale: fix crash when picking an element in the list popup

This commit is contained in:
Frédéric van der Essen
2015-03-06 15:16:11 +01:00
parent 0d60cdfd68
commit 8d37584b6c
+1 -1
View File
@@ -152,7 +152,7 @@ openerp.point_of_sale.load_popups = function load_popups(instance, module) {
click_item : function(event) {
this.gui.close_popup();
if (this.options.confirm) {
var item = self.list[parseInt($(event.target).data('item-index'))];
var item = this.list[parseInt($(event.target).data('item-index'))];
item = item ? item.item : item;
}
}