[FIX] l10n_fr_fec: escape references

Escape the character `|` in the reference, to avoid messing with the
exported CSV file.

opw-1814994
This commit is contained in:
Nicolas Martinelli
2018-03-12 08:09:20 +01:00
committed by Nicolas Martinelli
parent 3e7835134d
commit 00acd9882b
+2 -2
View File
@@ -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,