From f7e4241a91c36db157a4a6bfc8252b46a5185800 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Mon, 4 Jul 2016 14:50:44 +0200 Subject: [PATCH] [FIX] l10n_fr_fec: exclude initial balance at 0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The FEC control check does not like rows with debit = credit = 0 ``` º Structure fichier incorrecte, débit/crédit ... renseignés sur une même ligne ... , ou débit=crédit=0 ``` opw-682365 --- addons/l10n_fr_fec/wizard/fec.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/l10n_fr_fec/wizard/fec.py b/addons/l10n_fr_fec/wizard/fec.py index ccc3a26e30b..45c0470a553 100644 --- a/addons/l10n_fr_fec/wizard/fec.py +++ b/addons/l10n_fr_fec/wizard/fec.py @@ -166,6 +166,7 @@ class AccountFrFec(models.TransientModel): sql_query += ''' GROUP BY aml.account_id + HAVING sum(aml.balance) != 0 ''' formatted_date_from = self.date_from.replace('-', '') self._cr.execute(