Skip to content
Snippets Groups Projects
Commit d870749d authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[FIX] l10n_fr_fec: remove new line


- Make a SO with a product that have a carriage return in its
description
- Export FEC report

The CSV contains new lines and is not correctly formatted.

opw-2026861

closes odoo/odoo#34385

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent da986aa4
Branches
Tags
No related merge requests found
......@@ -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(aml.name, '|', '/'), '\t', '') END AS EcritureLib,
ELSE replace(replace(replace(aml.name, '|', '/'), '\t', ''), '\n', '') 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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment