From c602b249f4bcd4c852af9b5d9e7f6efac9815629 Mon Sep 17 00:00:00 2001 From: Guillaume Auger Date: Fri, 30 Jan 2015 10:05:08 -0500 Subject: [PATCH] Small refacts --- account_move_line_report_xls/report/__init__.py | 1 - account_move_line_report_xls/report/move_line_list_xls.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/account_move_line_report_xls/report/__init__.py b/account_move_line_report_xls/report/__init__.py index 395e361c..4938e74e 100644 --- a/account_move_line_report_xls/report/__init__.py +++ b/account_move_line_report_xls/report/__init__.py @@ -21,4 +21,3 @@ ############################################################################## from . import move_line_list_xls - diff --git a/account_move_line_report_xls/report/move_line_list_xls.py b/account_move_line_report_xls/report/move_line_list_xls.py index f2a960aa..0bb4e496 100644 --- a/account_move_line_report_xls/report/move_line_list_xls.py +++ b/account_move_line_report_xls/report/move_line_list_xls.py @@ -136,9 +136,9 @@ class move_line_xls(report_xls): [1, 0, _render("line.date_maturity and 'date' or 'text'"), _render( - "line.date_maturity \ - and datetime.strptime(line.date_maturity,'%Y-%m-%d') \ - or None"), + "line.date_maturity" + " and datetime.strptime(line.date_maturity,'%Y-%m-%d')" + " or None"), None, self.aml_cell_style_date], 'totals': [1, 0, 'text', None]}, 'debit': {