banking-addons-team team mailing list archive
-
banking-addons-team team
-
Mailing list archive
-
Message #01130
lp:~akretion-team/banking-addons/bank-statement-reconcile-70-debug-improvement into lp:banking-addons/bank-statement-reconcile-7.0
Sébastien BEAU - http://www.akretion.com has proposed merging lp:~akretion-team/banking-addons/bank-statement-reconcile-70-debug-improvement into lp:banking-addons/bank-statement-reconcile-7.0.
Requested reviews:
Nicolas Bessi - Camptocamp (nbessi-c2c)
Guewen Baconnier @ Camptocamp (gbaconnier-c2c)
For more details, see:
https://code.launchpad.net/~akretion-team/banking-addons/bank-statement-reconcile-70-debug-improvement/+merge/197771
Little trick to avoid headhack
--
https://code.launchpad.net/~akretion-team/banking-addons/bank-statement-reconcile-70-debug-improvement/+merge/197771
Your team Banking Addons Core Editors is subscribed to branch lp:banking-addons/bank-statement-reconcile-7.0.
=== modified file 'account_statement_base_import/statement.py'
--- account_statement_base_import/statement.py 2013-09-12 09:05:01 +0000
+++ account_statement_base_import/statement.py 2013-12-04 17:58:18 +0000
@@ -26,6 +26,7 @@
from openerp.osv.orm import Model
from openerp.osv import fields, osv
from parser import new_bank_statement_parser
+from openerp.tools.config import config
class AccountStatementProfil(Model):
@@ -211,6 +212,8 @@
error_type, error_value, trbk = sys.exc_info()
st = "Error: %s\nDescription: %s\nTraceback:" % (error_type.__name__, error_value)
st += ''.join(traceback.format_tb(trbk, 30))
+ if config['debug_mode']:
+ raise
raise osv.except_osv(_("Statement import error"),
_("The statement cannot be created: %s") % st)
return statement_id