account: fix multi company in aged trial balance
authorced <>
Thu, 26 Jul 2007 08:30:08 +0000 (08:30 +0000)
committerced <>
Thu, 26 Jul 2007 08:30:08 +0000 (08:30 +0000)
bzr revid: ced-bc2e64bf9db0c6405d27256a894304bcbebe4851

addons/account/report/aged_trial_balance.py

index 60ce109..a040a9d 100644 (file)
@@ -138,9 +138,7 @@ class aged_trial_report(report_sxw.rml_parse):
        def _get_currency(self, form):
                return pooler.get_pool(self.cr.dbname).get('res.company').browse(self.cr, self.uid, form['company_id']).currency_id.name
 
-report_sxw.report_sxw(
-       'report.account.aged.trial.balance',
-       'res.partner',
-       'addons/account/report/aged_trial_balance.rml',
-       parser=aged_trial_report, header=False)
+report_sxw.report_sxw('report.account.aged.trial.balance','res.partner',
+       'addons/account/report/aged_trial_balance.rml', parser=aged_trial_report,
+       header=False)