[IMP] other PEP8

pull/7/merge
Lorenzo Battistini 2013-10-28 08:07:39 +01:00
parent 45f29da216
commit 5da6828211
3 changed files with 12 additions and 9 deletions

View File

@ -2,4 +2,3 @@ import account_report_common
import account_report_common_account import account_report_common_account
import account_report_balance_sheet import account_report_balance_sheet
import account_report_profit_loss import account_report_profit_loss

View File

@ -23,14 +23,16 @@
from osv import orm, fields from osv import orm, fields
class account_common_account_report(orm.TransientModel): class account_common_account_report(orm.TransientModel):
_name = 'account_financial_report_horizontal.common.account.report' _name = 'account_financial_report_horizontal.common.account.report'
_description = 'Account Common Account Report' _description = 'Account Common Account Report'
_inherit = "account_financial_report_horizontal.common.report" _inherit = "account_financial_report_horizontal.common.report"
_columns = { _columns = {
'display_account': fields.selection([('bal_all','All'), ('bal_movement','With movements'), 'display_account': fields.selection([
('bal_solde','With balance is not equal to 0'), ('bal_all', 'All'), ('bal_movement', 'With movements'),
],'Display accounts', required=True), ('bal_solde', 'With balance is not equal to 0'),
], 'Display accounts', required=True),
} }
_defaults = { _defaults = {
@ -40,7 +42,8 @@ class account_common_account_report(orm.TransientModel):
def pre_print_report(self, cr, uid, ids, data, context=None): def pre_print_report(self, cr, uid, ids, data, context=None):
if context is None: if context is None:
context = {} context = {}
data['form'].update(self.read(cr, uid, ids, ['display_account'], context=context)[0]) data['form'].update(self.read(
data['form']['lang'] = self.pool.get('res.users').browse(cr, uid, uid, context).lang cr, uid, ids, ['display_account'], context=context)[0])
data['form']['lang'] = self.pool.get('res.users').browse(
cr, uid, uid, context).lang
return data return data

View File

@ -23,9 +23,11 @@
from osv import orm, fields from osv import orm, fields
class account_pl_report(orm.TransientModel): 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" _inherit = "account_financial_report_horizontal.common.account.report"
_name = "account.pl.report" _name = "account.pl.report"
@ -56,4 +58,3 @@ class account_pl_report(orm.TransientModel):
'report_name': 'account.profit_loss', 'report_name': 'account.profit_loss',
'datas': data, 'datas': data,
} }