diff --git a/addons/purchase/report/order.rml b/addons/purchase/report/order.rml index 203a4270391..1ced17150ad 100644 --- a/addons/purchase/report/order.rml +++ b/addons/purchase/report/order.rml @@ -273,22 +273,22 @@ [[ line.name ]] - [[ ', '.join(map(lambda x: x.name, line.taxes_id)) or '0.00' ]] + [[ ', '.join(map(lambda x: x.name, line.taxes_id)) or formatLang(0.00) ]] [[ formatLang( line.date_planned, date=True) ]] - [[ line.product_qty or '0.00' ]] + [[ line.product_qty or formatLang(0.00) ]] [[ line.product_uom.name ]] - [[ line.price_unit or '0.00' ]] + [[ line.price_unit or formatLang(0.00) ]] - [[ line.price_subtotal or '0.00' ]] + [[ line.price_subtotal or formatLang(0.00) ]] @@ -339,7 +339,7 @@ Net Total : - [[ o.amount_untaxed or '0.00' ]] + [[ o.amount_untaxed or formatLang(0.00) ]] [[ o.pricelist_id.currency_id.name ]] @@ -355,7 +355,7 @@ Taxes : - [[ o.amount_tax or '0.00' ]] + [[ o.amount_tax or formatLang(0.00) ]] [[ o.pricelist_id.currency_id.name ]] @@ -371,7 +371,7 @@ Total : - [[ o.amount_total or '0.00' ]] + [[ o.amount_total or formatLang(0.00) ]] [[ o.pricelist_id.currency_id.name ]] diff --git a/addons/purchase/report/request_quotation.rml b/addons/purchase/report/request_quotation.rml index 6961eb5cf8b..00f04aacf61 100644 --- a/addons/purchase/report/request_quotation.rml +++ b/addons/purchase/report/request_quotation.rml @@ -137,7 +137,7 @@ [[ formatLang(order_line.date_planned, date = True) ]] - [[ order_line.product_qty or '' ]] + [[ order_line.product_qty or formatLang(0.00)]] [[ (order_line.product_uom and order_line.product_uom.name) or '' ]] diff --git a/addons/sale/report/order.rml b/addons/sale/report/order.rml index f68caff3d1e..6ba40118b01 100644 --- a/addons/sale/report/order.rml +++ b/addons/sale/report/order.rml @@ -98,12 +98,6 @@ - - - - - - @@ -256,22 +250,22 @@ [[ line.name ]] - [[formatLang( ', '.join(map(lambda x: x.name, line.tax_id))) or '0.00' ]] + [[ ', '.join(map(lambda x: x.name, line.tax_id)) or formatLang(0.00) ]] - [[ formatLang(line.product_uos and line.product_uos_qty or line.product_uom_qty) or '0.00']] + [[ line.product_uos and line.product_uos_qty or line.product_uom_qty or formatLang(0.00) ]] [[ line.product_uos and line.product_uos.name or line.product_uom.name ]] - [[ formatLang(line.price_unit) or '0.00' ]] + [[ line.price_unit or formatLang(0.00) ]] - [[ formatLang(line.discount) and str(line.discount) or '0.00' ]] + [[ line.discount and str(line.discount) or formatLang(0.00) ]] - [[ formatLang(line.price_subtotal) or '0.00' ]] + [[ line.price_subtotal or formatLang(0.00) ]] @@ -322,7 +316,7 @@ Net Total : - [[ formatLang(o.amount_untaxed) or '0.00' ]] + [[ o.amount_untaxed or formatLang(0.00) ]] [[ o.pricelist_id.currency_id.name ]] @@ -338,7 +332,7 @@ Taxes : - [[ formatLang(o.amount_tax) or '0.00' ]] + [[ o.amount_tax or formatLang(0.00) ]] [[ o.pricelist_id.currency_id.name ]] @@ -354,7 +348,7 @@ Total : - [[ formatLang(o.amount_total) or '0.00' ]] + [[ o.amount_total or formatLang(0.00) ]] [[ o.pricelist_id.currency_id.name ]]