From 5da68282118422ea44e354e9a41441200668eb4a Mon Sep 17 00:00:00 2001 From: Lorenzo Battistini Date: Mon, 28 Oct 2013 08:07:39 +0100 Subject: [PATCH] [IMP] other PEP8 --- .../wizard/__init__.py | 1 - .../wizard/account_report_common_account.py | 15 +++++++++------ .../wizard/account_report_profit_loss.py | 5 +++-- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/account_financial_report_horizontal/wizard/__init__.py b/account_financial_report_horizontal/wizard/__init__.py index 3cbe2391..ec82d67c 100644 --- a/account_financial_report_horizontal/wizard/__init__.py +++ b/account_financial_report_horizontal/wizard/__init__.py @@ -2,4 +2,3 @@ import account_report_common import account_report_common_account import account_report_balance_sheet import account_report_profit_loss - diff --git a/account_financial_report_horizontal/wizard/account_report_common_account.py b/account_financial_report_horizontal/wizard/account_report_common_account.py index 35c17de8..0e531974 100644 --- a/account_financial_report_horizontal/wizard/account_report_common_account.py +++ b/account_financial_report_horizontal/wizard/account_report_common_account.py @@ -23,14 +23,16 @@ from osv import orm, fields + class account_common_account_report(orm.TransientModel): _name = 'account_financial_report_horizontal.common.account.report' _description = 'Account Common Account Report' _inherit = "account_financial_report_horizontal.common.report" _columns = { - 'display_account': fields.selection([('bal_all','All'), ('bal_movement','With movements'), - ('bal_solde','With balance is not equal to 0'), - ],'Display accounts', required=True), + 'display_account': fields.selection([ + ('bal_all', 'All'), ('bal_movement', 'With movements'), + ('bal_solde', 'With balance is not equal to 0'), + ], 'Display accounts', required=True), } _defaults = { @@ -40,7 +42,8 @@ class account_common_account_report(orm.TransientModel): def pre_print_report(self, cr, uid, ids, data, context=None): if context is None: context = {} - data['form'].update(self.read(cr, uid, ids, ['display_account'], context=context)[0]) - data['form']['lang'] = self.pool.get('res.users').browse(cr, uid, uid, context).lang + data['form'].update(self.read( + cr, uid, ids, ['display_account'], context=context)[0]) + data['form']['lang'] = self.pool.get('res.users').browse( + cr, uid, uid, context).lang return data - diff --git a/account_financial_report_horizontal/wizard/account_report_profit_loss.py b/account_financial_report_horizontal/wizard/account_report_profit_loss.py index 73b6b34c..5ba47b30 100644 --- a/account_financial_report_horizontal/wizard/account_report_profit_loss.py +++ b/account_financial_report_horizontal/wizard/account_report_profit_loss.py @@ -23,9 +23,11 @@ from osv import orm, fields + class account_pl_report(orm.TransientModel): """ - This wizard will provide the account profit and loss report by periods, between any two dates. + This wizard will provide the account profit and loss report by periods, + between any two dates. """ _inherit = "account_financial_report_horizontal.common.account.report" _name = "account.pl.report" @@ -56,4 +58,3 @@ class account_pl_report(orm.TransientModel): 'report_name': 'account.profit_loss', 'datas': data, } -