summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addons/point_of_sale/static/src/js/models.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js
index f647a679571..4a6f57e33b4 100644
--- a/addons/point_of_sale/static/src/js/models.js
+++ b/addons/point_of_sale/static/src/js/models.js
@@ -1060,6 +1060,10 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal
this.selectLine(this.getLastOrderline());
},
addProduct: function(product, options){
+ if(this._printed){
+ this.destroy();
+ return this.pos.get('selectedOrder').addProduct(product, options);
+ }
options = options || {};
var attr = JSON.parse(JSON.stringify(product));
attr.pos = this.pos;