[REF] account :add domain on account report common to get default parent account

bzr revid: ara@tinyerp.com-20101224100758-lx2zazqo0o06zkt1
This commit is contained in:
ARA (OpenERP)
2010-12-24 15:37:58 +05:30
parent 9f26e0b500
commit 8f32683ee3
@@ -86,7 +86,7 @@ class account_common_report(osv.osv_memory):
return res
def _get_account(self, cr, uid, context=None):
accounts = self.pool.get('account.account').search(cr, uid, [], limit=1)
accounts = self.pool.get('account.account').search(cr, uid, [('parent_id', '=', False)], limit=1)
return accounts and accounts[0] or False
def _get_fiscalyear(self, cr, uid, context=None):