[FIX] point_of_sale: printing of tax name on hardware was missing data 'name', also...
authorNiels Huylebroeck <niels@bubbles-it.be>
Thu, 9 Oct 2014 16:38:46 +0000 (18:38 +0200)
committerNiels Huylebroeck <niels@bubbles-it.be>
Thu, 9 Oct 2014 16:38:46 +0000 (18:38 +0200)
addons/point_of_sale/static/src/js/models.js
addons/point_of_sale/static/src/xml/pos.xml

index b6ac5e8..31ede08 100644 (file)
@@ -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});
                 }
             }
 
index 38a0027..7832b2d 100644 (file)
                 </tr>
                 <t t-foreach="order.getTaxDetails()" t-as="taxdetail">
                     <tr>
-                        <td><t t-esc="taxdetail.tax.name" /></td>
+                        <td><t t-esc="taxdetail.name" /></td>
                         <td class="pos-right-align">
                             <t t-esc="widget.format_currency(taxdetail.amount)" />
                         </td>