[MERGE] opw 590932: empty balance in l10n_fr reports
authorChristophe Simonis <chs@openerp.com>
Wed, 24 Apr 2013 12:22:22 +0000 (14:22 +0200)
committerChristophe Simonis <chs@openerp.com>
Wed, 24 Apr 2013 12:22:22 +0000 (14:22 +0200)
lp bug: https://launchpad.net/bugs/1036943 fixed

bzr revid: chs@openerp.com-20130424122222-hvk0mmss3wnex2iq

addons/l10n_fr/wizard/fr_report_bilan.py
addons/l10n_fr/wizard/fr_report_compute_resultant.py

index cec2e51..e4a1094 100644 (file)
@@ -49,7 +49,7 @@ class account_bilan_report(osv.osv_memory):
         data = {}
         data['form'] = {}
         data['ids'] = active_ids
-        data['form']['fiscalyear'] = self.browse(cr, uid, ids)[0].fiscalyear_id.id
+        data['form']['fiscalyear_id'] = self.browse(cr, uid, ids)[0].fiscalyear_id.id
         return {'type': 'ir.actions.report.xml', 'report_name': 'l10n.fr.bilan', 'datas': data}
 
 account_bilan_report()
index d90466e..eff7c19 100644 (file)
@@ -49,7 +49,7 @@ class account_cdr_report(osv.osv_memory):
         data = {}
         data['form'] = {}
         data['ids'] = active_ids
-        data['form']['fiscalyear'] = self.browse(cr, uid, ids)[0].fiscalyear_id.id
+        data['form']['fiscalyear_id'] = self.browse(cr, uid, ids)[0].fiscalyear_id.id
         return { 'type': 'ir.actions.report.xml', 'report_name': 'l10n.fr.compute_resultant', 'datas': data}
 
 account_cdr_report()