Browse Source

[IMP] other PEP8

pull/7/merge
Lorenzo Battistini 11 years ago
parent
commit
5da6828211
  1. 1
      account_financial_report_horizontal/wizard/__init__.py
  2. 15
      account_financial_report_horizontal/wizard/account_report_common_account.py
  3. 5
      account_financial_report_horizontal/wizard/account_report_profit_loss.py

1
account_financial_report_horizontal/wizard/__init__.py

@ -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

15
account_financial_report_horizontal/wizard/account_report_common_account.py

@ -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'),
('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 = { _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']['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 return data

5
account_financial_report_horizontal/wizard/account_report_profit_loss.py

@ -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,
} }
Loading…
Cancel
Save