Skip to content

Commit

Permalink
Merge c550f40 into 87f2bad
Browse files Browse the repository at this point in the history
  • Loading branch information
lepistone committed Oct 3, 2014
2 parents 87f2bad + c550f40 commit 9b8506d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions account_financial_report/report/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,10 @@ def _get_partner_balance(self, account, init_period, ctx=None):
unknown and res.append(unknown)
return res

def _get_analytic_ledger(self, account, ctx={}):
def _get_analytic_ledger(self, account, ctx=None):
if ctx is None:
ctx = {}

res = []

if account['type'] in ('other', 'liquidity', 'receivable', 'payable'):
Expand Down Expand Up @@ -370,7 +373,10 @@ def _get_analytic_ledger(self, account, ctx={}):
})
return res

def _get_journal_ledger(self, account, ctx={}):
def _get_journal_ledger(self, account, ctx=None):
if ctx is None:
ctx = {}

res = []
am_obj = self.pool.get('account.move')
print 'AM OBJ ', am_obj
Expand Down Expand Up @@ -423,8 +429,10 @@ def lines(self, form, level=0):
period_obj = self.pool.get('account.period')
fiscalyear_obj = self.pool.get('account.fiscalyear')

def _get_children_and_consol(cr, uid, ids, level, context={},
def _get_children_and_consol(cr, uid, ids, level, context=None,
change_sign=False):
if context is None:
context = {}
aa_obj = self.pool.get('account.account')
ids2 = []
for aa_brw in aa_obj.browse(cr, uid, ids, context):
Expand Down

0 comments on commit 9b8506d

Please sign in to comment.