From: Niels Huylebroeck Date: Thu, 9 Oct 2014 16:38:46 +0000 (+0200) Subject: [FIX] point_of_sale: printing of tax name on hardware was missing data 'name', also... X-Git-Tag: InsPy_8.0_01~4^2~8^2 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=f0f5a29606594b9ac0d396d3d4215f9694185576;p=odoo%2Fodoo.git [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. --- diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index b6ac5e8..31ede08 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 38a0027..7832b2d 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 @@ - +