From f0f5a29606594b9ac0d396d3d4215f9694185576 Mon Sep 17 00:00:00 2001 From: Niels Huylebroeck Date: Thu, 9 Oct 2014 18:38:46 +0200 Subject: [PATCH] [FIX] point_of_sale: printing of tax name on hardware was missing data 'name', also made the regular print use the same value for consistency. --- addons/point_of_sale/static/src/js/models.js | 2 +- addons/point_of_sale/static/src/xml/pos.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index b6ac5e8b81a..31ede08c901 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -1058,7 +1058,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal for(var id in details){ if(details.hasOwnProperty(id)){ - fulldetails.push({amount: details[id], tax: taxes_by_id[id]}); + fulldetails.push({amount: details[id], tax: taxes_by_id[id], name: taxes_by_id[id].name}); } } diff --git a/addons/point_of_sale/static/src/xml/pos.xml b/addons/point_of_sale/static/src/xml/pos.xml index 38a002774ab..7832b2d0d0a 100644 --- a/addons/point_of_sale/static/src/xml/pos.xml +++ b/addons/point_of_sale/static/src/xml/pos.xml @@ -973,7 +973,7 @@ - +