[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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user