diff --git a/addons/mrp_repair/report/order.py b/addons/mrp_repair/report/order.py index 3d6f9200dd8..d6edc1f01e4 100644 --- a/addons/mrp_repair/report/order.py +++ b/addons/mrp_repair/report/order.py @@ -33,9 +33,9 @@ class order(report_sxw.rml_parse): def total(self, repair): total = 0.0 for operation in repair.operations: - total+=operation.price_subtotal + total += operation.price_subtotal for fee in repair.fees_lines: - total+=fee.price_subtotal + total += fee.price_subtotal total = total + repair.amount_tax return total diff --git a/addons/mrp_repair/report/order.rml b/addons/mrp_repair/report/order.rml index 149a2650bfd..328b5e931ee 100644 --- a/addons/mrp_repair/report/order.rml +++ b/addons/mrp_repair/report/order.rml @@ -343,7 +343,7 @@ Net Total : - [[ formatLang(o.amount_untaxed)]] [[ o.pricelist_id.currency_id. symbol ]] + [[ formatLang(o.amount_untaxed, digits=get_digits(dp='Sale Price'))]] [[ o.pricelist_id.currency_id. symbol ]] @@ -357,7 +357,7 @@ Taxes: - [[ formatLang(o.amount_tax)]] [[ o.pricelist_id.currency_id. symbol ]] + [[ formatLang(o.amount_tax, digits=get_digits(dp='Account'))]] [[ o.pricelist_id.currency_id. symbol ]] @@ -370,7 +370,7 @@ Total : - [[ formatLang(total(o)) ]] [[ o.pricelist_id.currency_id. symbol ]] + [[ formatLang(total(o), digits=get_digits(dp='Sale Price')) ]] [[ o.pricelist_id.currency_id. symbol ]] @@ -391,4 +391,4 @@ - \ No newline at end of file +