From 6cb3fe43eda6c21ac8023ef460489cf96efa98e2 Mon Sep 17 00:00:00 2001 From: Tam Vu Date: Wed, 27 May 2015 22:59:33 +0700 Subject: [PATCH] [FIX] point of sale: order undefined If the line is linked to an order, this line must be removed in this order. --- addons/point_of_sale/static/src/js/models.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index a85090647f9..460a2d9890b 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -1051,7 +1051,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal }, addOrderline: function(line){ if(line.order){ - order.removeOrderline(line); + line.order.removeOrderline(line); } line.order = this; this.get('orderLines').add(line);