From a644c4c3c10e79a5fb821d6bd5dc328b7f7d3b0d Mon Sep 17 00:00:00 2001 From: Frederic van der Essen Date: Wed, 8 Oct 2014 12:38:44 +0200 Subject: [PATCH] [FIX] pos_restaurant: Issue 614981: product renaming from name to display_name was not done in the pos_restaurant module, resulting in empty product names in various places --- addons/pos_restaurant/static/src/js/multiprint.js | 8 ++++---- addons/pos_restaurant/static/src/xml/splitbill.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/pos_restaurant/static/src/js/multiprint.js b/addons/pos_restaurant/static/src/js/multiprint.js index 14e412a5071..81b0e34053a 100644 --- a/addons/pos_restaurant/static/src/js/multiprint.js +++ b/addons/pos_restaurant/static/src/js/multiprint.js @@ -81,19 +81,19 @@ function openerp_restaurant_multiprint(instance,module){ if (typeof old[product] === 'undefined'){ add.push({ 'id': product, - 'name': this.pos.db.get_product_by_id(product).name, + 'name': this.pos.db.get_product_by_id(product).display_name, 'quantity': current[product], }); }else if( old[product] < current[product]){ add.push({ 'id': product, - 'name': this.pos.db.get_product_by_id(product).name, + 'name': this.pos.db.get_product_by_id(product).display_name, 'quantity': current[product] - old[product], }); }else if( old[product] > current[product]){ rem.push({ 'id': product, - 'name': this.pos.db.get_product_by_id(product).name, + 'name': this.pos.db.get_product_by_id(product).display_name, 'quantity': old[product] - current[product], }); } @@ -103,7 +103,7 @@ function openerp_restaurant_multiprint(instance,module){ if(typeof current[product] === 'undefined'){ rem.push({ 'id': product, - 'name': this.pos.db.get_product_by_id(product).name, + 'name': this.pos.db.get_product_by_id(product).display_name, 'quantity': old[product], }); } diff --git a/addons/pos_restaurant/static/src/xml/splitbill.xml b/addons/pos_restaurant/static/src/xml/splitbill.xml index d56f01aaa9b..e14f7ffef70 100644 --- a/addons/pos_restaurant/static/src/xml/splitbill.xml +++ b/addons/pos_restaurant/static/src/xml/splitbill.xml @@ -13,7 +13,7 @@
  • - +