[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
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user