[IMP] other PEP8
parent
45f29da216
commit
5da6828211
|
@ -2,4 +2,3 @@ import account_report_common
|
|||
import account_report_common_account
|
||||
import account_report_balance_sheet
|
||||
import account_report_profit_loss
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue