From df54691ea25243ed3e9b50c74520c4ad31cab79c Mon Sep 17 00:00:00 2001
From: qdp-odoo <qdp@openerp.com>
Date: Tue, 2 Sep 2014 10:52:11 +0200
Subject: [PATCH] [FIX] l10n_be_coda: if there's no communication, feed the
 field with '/' instead of an empty string

---
 addons/l10n_be_coda/wizard/account_coda_import.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/addons/l10n_be_coda/wizard/account_coda_import.py b/addons/l10n_be_coda/wizard/account_coda_import.py
index 929179873d70..76f07d2b4006 100644
--- a/addons/l10n_be_coda/wizard/account_coda_import.py
+++ b/addons/l10n_be_coda/wizard/account_coda_import.py
@@ -308,7 +308,7 @@ class account_coda_import(osv.osv_memory):
                     if line.get('communication', ''):
                         note.append(_('Communication') + ': ' + line['communication'])
                     data = {
-                        'name': structured_com or line['communication'],
+                        'name': structured_com or (line.get('communication', '') != '' and line['communication'] or '/'),
                         'note': "\n".join(note),
                         'date': line['entryDate'],
                         'amount': line['amount'],
-- 
GitLab