Merge pull request #3001 from Bubbles-IT/8.0-fix-pos-tax-label

[FIX] point_of_sale: printing of tax name on hardware was missing name
This commit is contained in:
Frédéric Van der Essen
2014-10-14 15:52:46 +02:00
2 changed files with 2 additions and 2 deletions
+1 -1
View 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});
}
}
+1 -1
View File
@@ -973,7 +973,7 @@
</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>