From f48f4c68dcabbeac16b0836eede5fa7fba1612bc Mon Sep 17 00:00:00 2001 From: Frederic van der Essen Date: Wed, 1 Oct 2014 12:24:30 +0200 Subject: [PATCH] [FIX] pos_loyalty: missing code from pos_loyalty MERGE --- addons/point_of_sale/static/src/js/models.js | 6 ++++++ 1 file changed, 6 insertions(+) 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);