diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index a8d2394d1f7..095cf9f3c93 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -1029,6 +1029,12 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal line.set_discount(options.discount); } + if(options.extras !== undefined){ + for (prop in options.extras) { + line[prop] = options.extras[prop]; + } + } + var last_orderline = this.getLastOrderline(); if( last_orderline && last_orderline.can_be_merged_with(line) && options.merge !== false){ last_orderline.merge(line);