Browse Source

[pep8] review on account_financial_report, account_financial_report_horizontal, account_financial_report_webkit_xls, account_journal_report_xls, account_move_line_report_xls

pull/757/head
laetitia.gangloff@acsone.eu 10 years ago
committed by dsolanki
parent
commit
ddc4deb905
  1. 8
      account_move_line_report_xls/report/move_line_list_xls.py

8
account_move_line_report_xls/report/move_line_list_xls.py

@ -51,7 +51,7 @@ class move_line_xls_parser(report_sxw.rml_parse):
def _(self, src):
lang = self.context.get('lang', 'en_US')
return translate(self.cr, _ir_translation_name, 'report', lang, src)\
return translate(self.cr, _ir_translation_name, 'report', lang, src) \
or src
@ -136,8 +136,8 @@ class move_line_xls(report_xls):
[1, 0,
_render("line.date_maturity.val and 'date' or 'text'"),
_render(
"line.date_maturity.val\
and datetime.strptime(line.date_maturity,'%Y-%m-%d')\
"line.date_maturity.val \
and datetime.strptime(line.date_maturity,'%Y-%m-%d') \
or None"),
None, self.aml_cell_style_date],
'totals': [1, 0, 'text', None]},
@ -298,7 +298,7 @@ class move_line_xls(report_xls):
if not (credit_pos and debit_pos) and 'balance' in wanted_list:
raise orm.except_orm(
_('Customisation Error!'),
_("The 'Balance' field is a calculated XLS field requiring\
_("The 'Balance' field is a calculated XLS field requiring \
the presence of the 'Debit' and 'Credit' fields !"))
# report_name = objects[0]._description or objects[0]._name

Loading…
Cancel
Save