From f237e567908fa9a97c40af9f5ea0f2756c0a4841 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Tue, 13 Mar 2012 13:51:19 +0100 Subject: [PATCH] [FIX] account: qucik and dirty fix on the common wizard of reports to set the company_id by default in order to avoid having the name_search of fiscalyear processed before it is correctly set by the onchange of default value of chart account id. This bug is due to asynchronous calls of web client and will be solved asap, but in the meanwhile this little hack will localy solve the problem. bzr revid: qdp-launchpad@openerp.com-20120313125119-0to4xin6rb8mb75o --- addons/account/wizard/account_report_common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/wizard/account_report_common.py b/addons/account/wizard/account_report_common.py index 50c5d4adbae..79cfa7236b6 100644 --- a/addons/account/wizard/account_report_common.py +++ b/addons/account/wizard/account_report_common.py @@ -123,6 +123,7 @@ class account_common_report(osv.osv_memory): _defaults = { 'fiscalyear_id': _get_fiscalyear, + 'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'account.common.report',context=c), 'journal_ids': _get_all_journal, 'filter': 'filter_no', 'chart_account_id': _get_account,