From d999af6fbbbf39212ebc03b8ad50c6f4496c8e33 Mon Sep 17 00:00:00 2001 From: "Ronald Portier (Therp BV)" Date: Sat, 7 Feb 2015 02:47:09 +0100 Subject: [PATCH] [FIX] Use hashes to comment out code. When using string delimiters to comment out code (""" before and after), pylint will complain about useless strings. --- .../account_bank_statement_import.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/account_bank_statement_import/account_bank_statement_import.py b/account_bank_statement_import/account_bank_statement_import.py index d12e23c..ff1252d 100644 --- a/account_bank_statement_import/account_bank_statement_import.py +++ b/account_bank_statement_import/account_bank_statement_import.py @@ -158,13 +158,11 @@ class account_bank_statement_import(osv.TransientModel): # If there is no journal, create one (and its account) # I think it's too dangerous, so I disable that code by default -- Alexis de Lattre - """ # -- Totally disabled, Ronald Portier - if context.get('allow_auto_create_journal') and not journal_id and account_number: - journal_id = self._create_journal(cr, uid, currency_id, account_number, context=context) - if bank_account_id: - bank_pool.write(cr, uid, [bank_account_id], {'journal_id': journal_id}, context=context) - """ + # if context.get('allow_auto_create_journal') and not journal_id and account_number: + # journal_id = self._create_journal(cr, uid, currency_id, account_number, context=context) + # if bank_account_id: + # bank_pool.write(cr, uid, [bank_account_id], {'journal_id': journal_id}, context=context) # If we couldn't find/create a journal, everything is lost if not journal_id: