From 8ba818ecbb4ddaf57f2262a29cd2e8b842afa2a7 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Thu, 1 Aug 2013 21:33:05 +0200 Subject: [PATCH] [FIX] Remove references to obsolete field 'reserve_account_id' --- .../wizard/account_report_balance_sheet.py | 10 +--------- .../wizard/account_report_balance_sheet_view.xml | 1 - 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/account_financial_report_horizontal/wizard/account_report_balance_sheet.py b/account_financial_report_horizontal/wizard/account_report_balance_sheet.py index c4f6eaef..793653bc 100644 --- a/account_financial_report_horizontal/wizard/account_report_balance_sheet.py +++ b/account_financial_report_horizontal/wizard/account_report_balance_sheet.py @@ -34,12 +34,6 @@ class account_bs_report(orm.TransientModel): _columns = { 'display_type': fields.boolean("Landscape Mode"), - 'reserve_account_id': fields.many2one('account.account', 'Reserve & Profit/Loss Account', - required=True, - help='This Account is used for transfering Profit/Loss ' \ - '(Profit: Amount will be added, Loss: Amount will be duducted), ' \ - 'which is calculated from Profilt & Loss Report', - domain = [('type','=','other')]), } _defaults={ @@ -50,9 +44,7 @@ class account_bs_report(orm.TransientModel): def _print_report(self, cr, uid, ids, data, context=None): if context is None: context = {} - data['form'].update(self.read(cr, uid, ids, ['display_type','reserve_account_id'])[0]) - if not data['form']['reserve_account_id']: - raise orm.except_orm(_('Warning'),_('Please define the Reserve and Profit/Loss account for current user company !')) + data['form'].update(self.read(cr, uid, ids, ['display_type'])[0]) data = self.pre_print_report(cr, uid, ids, data, context=context) if data['form']['display_type']: return { diff --git a/account_financial_report_horizontal/wizard/account_report_balance_sheet_view.xml b/account_financial_report_horizontal/wizard/account_report_balance_sheet_view.xml index dc5c93cc..88609927 100644 --- a/account_financial_report_horizontal/wizard/account_report_balance_sheet_view.xml +++ b/account_financial_report_horizontal/wizard/account_report_balance_sheet_view.xml @@ -21,7 +21,6 @@ -