summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjev-odoo <jev@odoo.com>2019-07-03 07:40:43 +0000
committerjev-odoo <jev@odoo.com>2019-07-03 07:40:43 +0000
commitacbdd526e64739914f864942d846b2c29008b362 (patch)
tree3e2dde8eb0fbba06eee09939805496bff80cb53b
parente210faa676dfed82280e4a9c5618459a12abdfaa (diff)
[FIX]l10n_fr_fec: better remove new line
Fix/improve commit d870749d79f079f9e88b9894c03fa24c97922c9f that was removing line feed (\n). In this one, we also remove carriage return (\r) to address all cases. closes odoo/odoo#34536 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
-rw-r--r--addons/l10n_fr_fec/wizard/account_fr_fec.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/l10n_fr_fec/wizard/account_fr_fec.py b/addons/l10n_fr_fec/wizard/account_fr_fec.py
index 89be7525129..e5cd5ad1925 100644
--- a/addons/l10n_fr_fec/wizard/account_fr_fec.py
+++ b/addons/l10n_fr_fec/wizard/account_fr_fec.py
@@ -291,7 +291,7 @@ class AccountFrFec(models.TransientModel):
TO_CHAR(am.date, 'YYYYMMDD') AS PieceDate,
CASE WHEN aml.name IS NULL OR aml.name = '' THEN '/'
WHEN aml.name SIMILAR TO '[\t|\s|\n]*' THEN '/'
- ELSE replace(replace(replace(aml.name, '|', '/'), '\t', ''), '\n', '') END AS EcritureLib,
+ ELSE replace(replace(replace(replace(aml.name, '|', '/'), '\t', ''), '\n', ''), '\r', '') END AS EcritureLib,
replace(CASE WHEN aml.debit = 0 THEN '0,00' ELSE to_char(aml.debit, '000000000000000D99') END, '.', ',') AS Debit,
replace(CASE WHEN aml.credit = 0 THEN '0,00' ELSE to_char(aml.credit, '000000000000000D99') END, '.', ',') AS Credit,
CASE WHEN rec.name IS NULL THEN '' ELSE rec.name END AS EcritureLet,