Revert the changes on wizard of general ledger now it inherit only with common report

bzr revid: mra@mra-laptop-20100709071933-fvafne0lnlhq20e6
This commit is contained in:
Mustufa Rangwala 2010-07-09 12:49:33 +05:30
parent 7359f8edc0
commit 003c39fd54
2 changed files with 3 additions and 4 deletions

View File

@ -35,7 +35,7 @@ import pooler
class general_ledger(rml_parse.rml_parse):
_name = 'report.account.general.ledger'
def set_context(self, objects, data, ids, report_type = None):
def set_context(self, objects, data, ids, report_type=None):
self.borne_date = self.get_min_date(data['form'])
new_ids = []
if (data['model'] == 'account.account'):

View File

@ -24,7 +24,7 @@ from osv import fields, osv
from tools.translate import _
class account_report_general_ledger(osv.osv_memory):
_inherit = "account.common.journal.report"
_inherit = "account.common.report"
_name = "account.report.general.ledger"
_description = "General Ledger Report"
@ -44,9 +44,8 @@ class account_report_general_ledger(osv.osv_memory):
}
def _print_report(self, cr, uid, ids, data, query_line, context=None):
data = self.pre_print_report(cr, uid, ids, data, query_line, context=context)
data['form'].update(self.read(cr, uid, ids, ['display_account', 'landscape', 'soldeinit', 'amount_currency', 'sortby'])[0])
# data['form']['query_get'] = query_line
data['form']['query_line'] = query_line
if data['form']['landscape'] == True:
return { 'type': 'ir.actions.report.xml', 'report_name': 'account.general.ledger_landscape', 'datas': data, 'nodestroy':True, }
else: