[FIX] point of sale: order undefined
If the line is linked to an order, this line must be removed in this order.
This commit is contained in:
parent
6d5f5f4470
commit
6cb3fe43ed
|
@ -1051,7 +1051,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal
|
||||||
},
|
},
|
||||||
addOrderline: function(line){
|
addOrderline: function(line){
|
||||||
if(line.order){
|
if(line.order){
|
||||||
order.removeOrderline(line);
|
line.order.removeOrderline(line);
|
||||||
}
|
}
|
||||||
line.order = this;
|
line.order = this;
|
||||||
this.get('orderLines').add(line);
|
this.get('orderLines').add(line);
|
||||||
|
|
Loading…
Reference in New Issue