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/745/head
laetitia.gangloff@acsone.eu 10 years ago
committed by dsolanki
parent
commit
e9cec7d83a
  1. 4
      account_financial_report_horizontal/report/account_balance_sheet.py
  2. 2
      account_financial_report_horizontal/report/account_profit_loss.py

4
account_financial_report_horizontal/report/account_balance_sheet.py

@ -69,8 +69,8 @@ class report_balancesheet_horizontal(
def set_context(self, objects, data, ids, report_type=None):
new_ids = ids
if (data['model'] == 'ir.ui.menu'):
new_ids = 'chart_account_id' in data['form']\
and data['form']['chart_account_id']\
new_ids = 'chart_account_id' in data['form'] \
and data['form']['chart_account_id'] \
and [data['form']['chart_account_id'][0]] or []
objects = self.pool.get('account.account').browse(
self.cr, self.uid, new_ids)

2
account_financial_report_horizontal/report/account_profit_loss.py

@ -62,7 +62,7 @@ class report_pl_account_horizontal(report_sxw.rml_parse, common_report_header):
new_ids = ids
if (data['model'] == 'ir.ui.menu'):
new_ids = 'chart_account_id' in data['form'] and data['form'][
'chart_account_id'] and [data['form']['chart_account_id'][0]]\
'chart_account_id'] and [data['form']['chart_account_id'][0]] \
or []
objects = self.pool.get('account.account').browse(
self.cr, self.uid, new_ids)

Loading…
Cancel
Save