From 00acd9882bb08b4acb7be854e7be2aa37e1b95e1 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Fri, 9 Mar 2018 14:14:05 +0100 Subject: [PATCH] [FIX] l10n_fr_fec: escape references Escape the character `|` in the reference, to avoid messing with the exported CSV file. opw-1814994 --- addons/l10n_fr_fec/wizard/account_fr_fec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/l10n_fr_fec/wizard/account_fr_fec.py b/addons/l10n_fr_fec/wizard/account_fr_fec.py index 8f57d844e0a..3b8ed12851f 100644 --- a/addons/l10n_fr_fec/wizard/account_fr_fec.py +++ b/addons/l10n_fr_fec/wizard/account_fr_fec.py @@ -221,7 +221,7 @@ class AccountFrFec(models.TransientModel): replace(MIN(aa.name), '|', '/') AS CompteLib, CASE WHEN rp.ref IS null OR rp.ref = '' THEN COALESCE('ID ' || rp.id, '') - ELSE rp.ref + ELSE replace(rp.ref, '|', '/') END AS CompAuxNum, COALESCE(replace(rp.name, '|', '/'), '') AS CompAuxLib, @@ -279,7 +279,7 @@ class AccountFrFec(models.TransientModel): replace(aa.name, '|', '/') AS CompteLib, CASE WHEN rp.ref IS null OR rp.ref = '' THEN COALESCE('ID ' || rp.id, '') - ELSE rp.ref + ELSE replace(rp.ref, '|', '/') END AS CompAuxNum, COALESCE(replace(rp.name, '|', '/'), '') AS CompAuxLib,