From e7cbcb20719926a67de6b76f3f48061077aea6d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 23 May 2018 23:12:28 +0200 Subject: [PATCH] Fallback to the default configured language in report issue7449 review49351002 --- purchase.fodt | 71 ++++++++++++++++++++++++--------------------------- 1 file changed, 34 insertions(+), 37 deletions(-) diff --git a/purchase.fodt b/purchase.fodt index 952b0aebe8..266ca3d2b9 100644 --- a/purchase.fodt +++ b/purchase.fodt @@ -1,24 +1,24 @@ - LibreOffice/5.4.2.2.0$Linux_X86_64 LibreOffice_project/40m0$Build-22008-06-07T15:28:222009-01-10T16:03:321PT0S + LibreOffice/5.4.5.1$Linux_X86_64 LibreOffice_project/40m0$Build-12008-06-07T15:28:222009-01-10T16:03:321PT0S - 62540 + 29069 0 - 43760 - 20519 + 29300 + 27571 true false view2 - 14293 - 74845 + 17134 + 35214 0 - 62540 - 43759 - 83058 + 29069 + 29298 + 56638 0 1 false @@ -71,7 +71,7 @@ false false true - 3012282 + 3100436 false true false @@ -460,30 +460,26 @@ - + + + + + - + - + - + - - - - - - - - @@ -536,8 +532,8 @@ <for each="purchase in records"> - <replace text:p="set_lang(purchase.party.lang and purchase.party.lang.code or 'en')"> - <replace text:p="purchase.set_lang(purchase.party.lang and purchase.party.lang.code or 'en')"> + <replace text:p="set_lang(purchase.party.lang)"> + <replace text:p="purchase.set_lang(purchase.party.lang)"> <for each="line in purchase.report_address.splitlines()"> <line> </for> @@ -546,23 +542,23 @@ </if> <choose test=""> <when test="purchase.state == 'draft'"> - Draft Purchase Order + Draft Purchase Order </when> <when test="purchase.state == 'quotation'"> - Request for Quotation N°: <purchase.number> + Request for Quotation N°: <purchase.number> </when> <otherwise test=""> - Purchase Order N°: <purchase.number> + Purchase Order N°: <purchase.number> </otherwise> - </when> + </when> - Description: <purchase.description or ''> + Description: <purchase.description or ''> Reference: <purchase.reference or ''> Date: <format_date(purchase.purchase_date, purchase.party.lang) if purchase.purchase_date else ''> - Delivery Address: - <for each="line in purchase.delivery_full_address.splitlines()"> - <line> - </for> + Delivery Address: + <for each="line in purchase.delivery_full_address.splitlines()"> + <line> + </for> @@ -615,8 +611,8 @@ - <choose> - <when test="line.product_supplier"> + <choose> + <when test="line.product_supplier"> <line.product_supplier.rec_name> </when> <when test="line.product"> @@ -666,15 +662,16 @@ <for each="line in (line.description or '').split('\n')"> <line> - </for> + </for> - <format_currency(line.amount, purchase.party.lang, purchase.currency)> + <format_currency(line.amount, purchase.party.lang, purchase.currency)> + </when>