[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/6/head
laetitia.gangloff@acsone.eu 2014-08-08 15:53:39 +02:00
parent cc060dd31f
commit 746679c598
14 changed files with 130 additions and 130 deletions

View File

@ -39,8 +39,9 @@ class account_financial_report(osv.osv):
'company_id': fields.many2one('res.company', 'Company', required=True), 'company_id': fields.many2one('res.company', 'Company', required=True),
'currency_id': fields.many2one('res.currency', 'Currency', 'currency_id': fields.many2one('res.currency', 'Currency',
help="Currency at which this report \ help="Currency at which this report \
will be expressed. If not selected will\ will be expressed. If not selected \
be used the one set in the company"), will be used the one set in the \
company"),
'inf_type': fields.selection([('BS', 'Balance Sheet'), 'inf_type': fields.selection([('BS', 'Balance Sheet'),
('IS', 'Income Statement')], ('IS', 'Income Statement')],
'Type', 'Type',
@ -70,24 +71,21 @@ class account_financial_report(osv.osv):
'account.period', 'afr_period_rel', 'afr_id', 'period_id', 'account.period', 'afr_period_rel', 'afr_id', 'period_id',
'Periods', help='All periods in the fiscal year if empty'), 'Periods', help='All periods in the fiscal year if empty'),
'analytic_ledger': fields.boolean('Analytic Ledger', 'analytic_ledger': fields.boolean(
help="Allows to Generate an Analytic\ 'Analytic Ledger',
Ledger for accounts with moves.\ help="Allows to Generate an Analytic Ledger for accounts with \
Available when Balance Sheet and\ moves. Available when Balance Sheet and 'Initial | Debit \
'Initial | Debit | Credit | YTD'\ | Credit | YTD' are selected"),
are selected"), 'journal_ledger': fields.boolean(
'journal_ledger': fields.boolean('journal Ledger', 'journal Ledger',
help="Allows to Generate an journal\ help="Allows to Generate an journal Ledger for accounts with \
Ledger for accounts with moves.\ moves. Available when Balance Sheet and 'Initial | Debit | \
Available when Balance Sheet and\ Credit | YTD' are selected"),
'Initial | Debit | Credit | YTD'\ 'partner_balance': fields.boolean(
are selected"), 'Partner Balance',
'partner_balance': fields.boolean('Partner Balance', help="Allows to Generate a Partner Balance for accounts with \
help="Allows to Generate a Partner\ moves. Available when Balance Sheet and 'Initial | Debit | \
Balance for accounts with moves.\ Credit | YTD' are selected"),
Available when Balance Sheet and\
'Initial | Debit | Credit | YTD'\
are selected"),
'tot_check': fields.boolean( 'tot_check': fields.boolean(
'Summarize?', 'Summarize?',
help='Checking will add a new line at the end of the Report which \ help='Checking will add a new line at the end of the Report which \

View File

@ -127,8 +127,8 @@ class account_balance(report_sxw.rml_parse):
aux.append(period.date_start) aux.append(period.date_start)
aux.append(period.date_stop) aux.append(period.date_stop)
sorted(aux) sorted(aux)
return _('From ') + self.formatLang(aux[0], date=True) + _(' to ')\ return _('From ') + self.formatLang(aux[0], date=True) + \
+ self.formatLang(aux[-1], date=True) _(' to ') + self.formatLang(aux[-1], date=True)
def get_periods_and_date_text(self, form): def get_periods_and_date_text(self, form):
""" """

View File

@ -39,10 +39,10 @@ class wizard_report(osv.osv_memory):
'afr', 'Custom Report', 'afr', 'Custom Report',
help='If you have already set a Custom Report, Select it Here.'), help='If you have already set a Custom Report, Select it Here.'),
'company_id': fields.many2one('res.company', 'Company', required=True), 'company_id': fields.many2one('res.company', 'Company', required=True),
'currency_id': fields.many2one('res.currency', 'Currency', 'currency_id': fields.many2one(
help="Currency at which this report\ 'res.currency', 'Currency',
will be expressed. If not selected will\ help="Currency at which this report will be expressed. If not \
be used the one set in the company"), selected will be used the one set in the company"),
'inf_type': fields.selection([('BS', 'Balance Sheet'), 'inf_type': fields.selection([('BS', 'Balance Sheet'),
('IS', 'Income Statement')], ('IS', 'Income Statement')],
'Type', 'Type',

View File

@ -186,7 +186,8 @@ class partners_balance_xls(report_xls):
_p.fiscalyear.name, None, cell_style_right)] _p.fiscalyear.name, None, cell_style_right)]
if _p.comparison_mode in ('single', 'multiple'): if _p.comparison_mode in ('single', 'multiple'):
for index in range(_p.nb_comparison): for index in range(_p.nb_comparison):
if _p.comp_params[index]['comparison_filter'] == 'filter_year'\ if _p.comp_params[index][
'comparison_filter'] == 'filter_year' \
and _p.comp_params[index].get('fiscalyear', False): and _p.comp_params[index].get('fiscalyear', False):
c_specs += [('balance_%s' % index, 1, 0, 'text', c_specs += [('balance_%s' % index, 1, 0, 'text',
_('Balance %s') % _('Balance %s') %

View File

@ -190,7 +190,8 @@ class trial_balance_xls(report_xls):
_p.fiscalyear.name, None, cell_style_right)] _p.fiscalyear.name, None, cell_style_right)]
if _p.comparison_mode in ('single', 'multiple'): if _p.comparison_mode in ('single', 'multiple'):
for index in range(_p.nb_comparison): for index in range(_p.nb_comparison):
if _p.comp_params[index]['comparison_filter'] == 'filter_year'\ if _p.comp_params[index][
'comparison_filter'] == 'filter_year' \
and _p.comp_params[index].get('fiscalyear', False): and _p.comp_params[index].get('fiscalyear', False):
c_specs += [('balance_%s' % index, 1, 0, 'text', c_specs += [('balance_%s' % index, 1, 0, 'text',
_('Balance %s') % _('Balance %s') %